diff options
author | Junling Zheng <zhengjunling@huawei.com> | 2018-03-29 14:27:12 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-04-02 23:21:51 +0300 |
commit | 235831d7dd783ebd20e08ef4310dbdeeea46d87a (patch) | |
tree | 55e5fff33db29129c03c837e72ef76e0d6ae2784 /fs/f2fs | |
parent | 53fedcc09c66c68e0fa7ccef0fe9c15f96dca452 (diff) | |
download | linux-235831d7dd783ebd20e08ef4310dbdeeea46d87a.tar.xz |
f2fs: fix a wrong condition in f2fs_skip_inode_update
Fix commit 97dd26ad8347 (f2fs: fix wrong AUTO_RECOVER condition).
We should use ~PAGE_MASK to determine whether i_size is aligned to
the f2fs's block size or not.
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 96d7809c4541..000f93f6767e 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -2471,7 +2471,7 @@ static inline bool f2fs_skip_inode_update(struct inode *inode, int dsync) } if (!is_inode_flag_set(inode, FI_AUTO_RECOVER) || file_keep_isize(inode) || - i_size_read(inode) & PAGE_MASK) + i_size_read(inode) & ~PAGE_MASK) return false; down_read(&F2FS_I(inode)->i_sem); |