f2fs: fix a wrong condition in f2fs_skip_inode_update
PATCH 1/1 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 <[email protected]>
--- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/f2fs.h +1 -1
@@ -2469,7 +2469,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);
Signature · 6 lines
2.16.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 5 lines · Junling Zheng
Fix commit
97dd26ad8347(f2fs: fix wrongAUTO_RECOVERcondition). We should use ~PAGE_MASK to determine whetheri_sizeis aligned to the f2fs's block size or not.Signed-off-by Junling Zheng <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot