Skip to content

Commit 744e66c

Browse files
Zhiguo NiuJaegeuk Kim
authored andcommitted
f2fs: remove redundant atomic file check in defragment
f2fs_is_atomic_file(inode) is checked in f2fs_defragment_range, so remove the redundant checking in f2fs_ioc_defragment. Signed-off-by: Zhiguo Niu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 51d3d95 commit 744e66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2883,7 +2883,7 @@ static int f2fs_ioc_defragment(struct file *filp, unsigned long arg)
28832883
if (!capable(CAP_SYS_ADMIN))
28842884
return -EPERM;
28852885

2886-
if (!S_ISREG(inode->i_mode) || f2fs_is_atomic_file(inode))
2886+
if (!S_ISREG(inode->i_mode))
28872887
return -EINVAL;
28882888

28892889
if (f2fs_readonly(sbi->sb))

0 commit comments

Comments
 (0)