* [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode
@ 2025-05-14 8:45 Zhiguo Niu
2025-05-14 8:45 ` [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename Zhiguo Niu
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Zhiguo Niu @ 2025-05-14 8:45 UTC (permalink / raw)
To: jaegeuk, chao
Cc: ke.wang, linux-kernel, linux-f2fs-devel, zhiguo.niu, Hao_hao.Wang
no logic changes.
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
---
fs/f2fs/namei.c | 8 ++++----
fs/f2fs/super.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 0b231bc..bb22543 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -414,7 +414,7 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir,
if (is_inode_flag_set(dir, FI_PROJ_INHERIT) &&
(!projid_eq(F2FS_I(dir)->i_projid,
- F2FS_I(old_dentry->d_inode)->i_projid)))
+ F2FS_I(inode)->i_projid)))
return -EXDEV;
err = f2fs_dquot_initialize(dir);
@@ -923,7 +923,7 @@ static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
if (is_inode_flag_set(new_dir, FI_PROJ_INHERIT) &&
(!projid_eq(F2FS_I(new_dir)->i_projid,
- F2FS_I(old_dentry->d_inode)->i_projid)))
+ F2FS_I(old_inode)->i_projid)))
return -EXDEV;
/*
@@ -1116,10 +1116,10 @@ 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_dentry->d_inode)->i_projid)) ||
+ F2FS_I(old_inode)->i_projid)) ||
(is_inode_flag_set(new_dir, FI_PROJ_INHERIT) &&
!projid_eq(F2FS_I(old_dir)->i_projid,
- F2FS_I(new_dentry->d_inode)->i_projid)))
+ F2FS_I(new_inode)->i_projid)))
return -EXDEV;
err = f2fs_dquot_initialize(old_dir);
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 40eaa55..da652699 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -2161,9 +2161,9 @@ static int f2fs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_fsid = u64_to_fsid(id);
#ifdef CONFIG_QUOTA
- if (is_inode_flag_set(dentry->d_inode, FI_PROJ_INHERIT) &&
+ if (is_inode_flag_set(d_inode(dentry), FI_PROJ_INHERIT) &&
sb_has_quota_limits_enabled(sb, PRJQUOTA)) {
- f2fs_statfs_project(sb, F2FS_I(dentry->d_inode)->i_projid, buf);
+ f2fs_statfs_project(sb, F2FS_I(d_inode(dentry))->i_projid, buf);
}
#endif
return 0;
--
1.9.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename
2025-05-14 8:45 [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Zhiguo Niu
@ 2025-05-14 8:45 ` Zhiguo Niu
2025-05-23 2:11 ` Chao Yu via Linux-f2fs-devel
2025-05-23 2:10 ` [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Chao Yu via Linux-f2fs-devel
2025-05-28 16:20 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
2 siblings, 1 reply; 5+ messages in thread
From: Zhiguo Niu @ 2025-05-14 8:45 UTC (permalink / raw)
To: jaegeuk, chao
Cc: ke.wang, linux-kernel, linux-f2fs-devel, zhiguo.niu, Hao_hao.Wang
Should be "old_dir" here.
Fixes: 5c57132eaf52 ("f2fs: support project quota")
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
---
fs/f2fs/namei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index bb22543..07e333e 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;
--
1.9.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode
2025-05-14 8:45 [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Zhiguo Niu
2025-05-14 8:45 ` [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename Zhiguo Niu
@ 2025-05-23 2:10 ` Chao Yu via Linux-f2fs-devel
2025-05-28 16:20 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
2 siblings, 0 replies; 5+ messages in thread
From: Chao Yu via Linux-f2fs-devel @ 2025-05-23 2:10 UTC (permalink / raw)
To: Zhiguo Niu, jaegeuk; +Cc: ke.wang, linux-kernel, linux-f2fs-devel, Hao_hao.Wang
On 5/14/25 16:45, Zhiguo Niu wrote:
> no logic changes.
>
> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename
2025-05-14 8:45 ` [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename Zhiguo Niu
@ 2025-05-23 2:11 ` Chao Yu via Linux-f2fs-devel
0 siblings, 0 replies; 5+ messages in thread
From: Chao Yu via Linux-f2fs-devel @ 2025-05-23 2:11 UTC (permalink / raw)
To: Zhiguo Niu, jaegeuk; +Cc: ke.wang, linux-kernel, linux-f2fs-devel, Hao_hao.Wang
On 5/14/25 16:45, Zhiguo Niu wrote:
> 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>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode
2025-05-14 8:45 [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Zhiguo Niu
2025-05-14 8:45 ` [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename Zhiguo Niu
2025-05-23 2:10 ` [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Chao Yu via Linux-f2fs-devel
@ 2025-05-28 16:20 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+f2fs--- via Linux-f2fs-devel @ 2025-05-28 16:20 UTC (permalink / raw)
To: Zhiguo Niu; +Cc: ke.wang, linux-kernel, linux-f2fs-devel, jaegeuk, Hao_hao.Wang
Hello:
This series was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:
On Wed, 14 May 2025 16:45:48 +0800 you wrote:
> no logic changes.
>
> Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
> ---
> fs/f2fs/namei.c | 8 ++++----
> fs/f2fs/super.c | 4 ++--
> 2 files changed, 6 insertions(+), 6 deletions(-)
Here is the summary with links:
- [f2fs-dev,1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode
https://git.kernel.org/jaegeuk/f2fs/c/a6c397a31f58
- [f2fs-dev,2/2] f2fs: fix to correct check conditions in f2fs_cross_rename
https://git.kernel.org/jaegeuk/f2fs/c/9883494c45a1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-28 16:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 8:45 [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Zhiguo Niu
2025-05-14 8:45 ` [f2fs-dev] [PATCH 2/2] f2fs: fix to correct check conditions in f2fs_cross_rename Zhiguo Niu
2025-05-23 2:11 ` Chao Yu via Linux-f2fs-devel
2025-05-23 2:10 ` [f2fs-dev] [PATCH 1/2] f2fs: use d_inode(dentry) cleanup dentry->d_inode Chao Yu via Linux-f2fs-devel
2025-05-28 16:20 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).