diff options
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 3efa4739b00c..33d1736ee5f9 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -157,11 +157,11 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
157 | 157 | ||
158 | if (!S_ISREG(inode->i_mode) || inode->i_nlink != 1) | 158 | if (!S_ISREG(inode->i_mode) || inode->i_nlink != 1) |
159 | need_cp = true; | 159 | need_cp = true; |
160 | if (is_inode_flag_set(F2FS_I(inode), FI_NEED_CP)) | 160 | else if (is_inode_flag_set(F2FS_I(inode), FI_NEED_CP)) |
161 | need_cp = true; | 161 | need_cp = true; |
162 | if (!space_for_roll_forward(sbi)) | 162 | else if (!space_for_roll_forward(sbi)) |
163 | need_cp = true; | 163 | need_cp = true; |
164 | if (need_to_sync_dir(sbi, inode)) | 164 | else if (need_to_sync_dir(sbi, inode)) |
165 | need_cp = true; | 165 | need_cp = true; |
166 | 166 | ||
167 | if (need_cp) { | 167 | if (need_cp) { |