* [PATCH] ovl: fix debug print in case of mkdir error
@ 2025-06-12 7:22 Amir Goldstein
2025-06-12 12:25 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Amir Goldstein @ 2025-06-12 7:22 UTC (permalink / raw)
To: Christian Brauner
Cc: Jan Kara, Miklos Szeredi, Al Viro, Neil Brown, linux-fsdevel,
linux-unionfs
We want to print the name in case of mkdir failure and now we will
get a cryptic (efault) as name.
Fixes: c54b386969a5 ("VFS: Change vfs_mkdir() to return the dentry.")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
Christian,
Another candidate for vfs.fixes from fallout of vfs API changes.
I noticed it by chance when reviewing Neil's new vfs_mkdir() patch.
TBH, I don't even remember seeing the v6.15 patch during review.
the patch review timestamp suggest I might have been on vacation
at the time and then must have gotten burried in my mailbox.
That is the second ovl regression that got in due to vfs API changes
that has no record on list of being reviewed by ovl developers.
I think we need to be a bit more careful in the progress of Neil's
work that the ovl parts are better reviewed and tested.
Neil, if you need help setting up fstests overlayfs testing
let me know (or read fstests README.overlay).
Thanks,
Amir.
fs/overlayfs/overlayfs.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index 8baaba0a3fe5..497323128e5f 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -246,9 +246,11 @@ static inline struct dentry *ovl_do_mkdir(struct ovl_fs *ofs,
struct dentry *dentry,
umode_t mode)
{
- dentry = vfs_mkdir(ovl_upper_mnt_idmap(ofs), dir, dentry, mode);
- pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, PTR_ERR_OR_ZERO(dentry));
- return dentry;
+ struct dentry *ret;
+
+ ret = vfs_mkdir(ovl_upper_mnt_idmap(ofs), dir, dentry, mode);
+ pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, PTR_ERR_OR_ZERO(ret));
+ return ret;
}
static inline int ovl_do_mknod(struct ovl_fs *ofs,
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ovl: fix debug print in case of mkdir error
2025-06-12 7:22 [PATCH] ovl: fix debug print in case of mkdir error Amir Goldstein
@ 2025-06-12 12:25 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2025-06-12 12:25 UTC (permalink / raw)
To: Amir Goldstein
Cc: Christian Brauner, Jan Kara, Miklos Szeredi, Al Viro,
linux-fsdevel, linux-unionfs, NeilBrown
On Thu, 12 Jun 2025 09:22:45 +0200, Amir Goldstein wrote:
> We want to print the name in case of mkdir failure and now we will
> get a cryptic (efault) as name.
>
>
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] ovl: fix debug print in case of mkdir error
https://git.kernel.org/vfs/vfs/c/527c88d8390d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-12 12:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12 7:22 [PATCH] ovl: fix debug print in case of mkdir error Amir Goldstein
2025-06-12 12:25 ` Christian Brauner
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).