From e0185895b2e34148b309cbe9301bdf5345c42fa4 Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Thu, 15 Aug 2019 19:45:34 +0800 Subject: [PATCH] f2fs: use wrapped IS_SWAPFILE() Just cleanup, no logic change. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 7919e2b99c2c..b500a3d891b2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -3718,7 +3718,7 @@ static inline bool f2fs_force_buffered_io(struct inode *inode, block_unaligned_IO(inode, iocb, iter)) return true; if (is_sbi_flag_set(F2FS_I_SB(inode), SBI_CP_DISABLED) && - !(inode->i_flags & S_SWAPFILE)) + !IS_SWAPFILE(inode)) return true; return false;