Skip to content

Commit 9883494

Browse files
Zhiguo NiuJaegeuk Kim
authored andcommitted
f2fs: fix to correct check conditions in f2fs_cross_rename
Should be "old_dir" here. Fixes: 5c57132 ("f2fs: support project quota") Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent a6c397a commit 9883494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry,
11171117
if ((is_inode_flag_set(new_dir, FI_PROJ_INHERIT) &&
11181118
!projid_eq(F2FS_I(new_dir)->i_projid,
11191119
F2FS_I(old_inode)->i_projid)) ||
1120-
(is_inode_flag_set(new_dir, FI_PROJ_INHERIT) &&
1120+
(is_inode_flag_set(old_dir, FI_PROJ_INHERIT) &&
11211121
!projid_eq(F2FS_I(old_dir)->i_projid,
11221122
F2FS_I(new_inode)->i_projid)))
11231123
return -EXDEV;

0 commit comments

Comments
 (0)