Commit 3ee0c5d3 authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim

f2fs: use wrapped IS_SWAPFILE()

Just cleanup, no logic change.
Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2c2eb7a3
...@@ -3703,7 +3703,7 @@ static inline bool f2fs_force_buffered_io(struct inode *inode, ...@@ -3703,7 +3703,7 @@ static inline bool f2fs_force_buffered_io(struct inode *inode,
block_unaligned_IO(inode, iocb, iter)) block_unaligned_IO(inode, iocb, iter))
return true; return true;
if (is_sbi_flag_set(F2FS_I_SB(inode), SBI_CP_DISABLED) && if (is_sbi_flag_set(F2FS_I_SB(inode), SBI_CP_DISABLED) &&
!(inode->i_flags & S_SWAPFILE)) !IS_SWAPFILE(inode))
return true; return true;
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment