diff options
author | 2025-05-14 16:45:49 +0800 | |
---|---|---|
committer | 2025-05-28 16:05:25 +0000 | |
commit | 9883494c45a13dc88d27dde4f988c04823b42a2f (patch) | |
tree | 47a6d315d0cd060d7a4a3ae4f85d5ab47f9c828c | |
parent | f2fs: use d_inode(dentry) cleanup dentry->d_inode (diff) | |
download | wireguard-linux-9883494c45a13dc88d27dde4f988c04823b42a2f.tar.xz wireguard-linux-9883494c45a13dc88d27dde4f988c04823b42a2f.zip |
f2fs: fix to correct check conditions in f2fs_cross_rename
Should be "old_dir" here.
Fixes: 5c57132eaf52 ("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>
-rw-r--r-- | fs/f2fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index bb225431ed47..07e333ee21b7 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -1117,7 +1117,7 @@ static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, if ((is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && !projid_eq(F2FS_I(new_dir)->i_projid, F2FS_I(old_inode)->i_projid)) || - (is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && + (is_inode_flag_set(old_dir, FI_PROJ_INHERIT) && !projid_eq(F2FS_I(old_dir)->i_projid, F2FS_I(new_inode)->i_projid))) return -EXDEV; |