Message ID | 20231116211822.leztxrldjzyqadtm@moria.home.lan (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fs: export getname() | expand |
On Thu, Nov 16, 2023 at 04:18:22PM -0500, Kent Overstreet wrote: > On Thu, Nov 16, 2023 at 05:08:32AM +0000, Al Viro wrote: > > (in #work.namei; used for bcachefs locking fix) > > From 74d016ecc1a7974664e98d1afbf649cd4e0e0423 Mon Sep 17 00:00:00 2001 > > From: Al Viro <viro@zeniv.linux.org.uk> > > Date: Wed, 15 Nov 2023 22:41:27 -0500 > > Subject: [PATCH 1/2] new helper: user_path_locked_at() > > > > Equivalent of kern_path_locked() taking dfd/userland name. > > User introduced in the next commit. > > also applying this: > -- >8 -- > > The locking fix in bch2_ioctl_subvolume_destroy() also needs getname() > exported; previous patch provided filename_path_locked() Not needed anymore...
On Thu, Nov 16, 2023 at 09:53:56PM +0000, Al Viro wrote: > On Thu, Nov 16, 2023 at 04:18:22PM -0500, Kent Overstreet wrote: > > On Thu, Nov 16, 2023 at 05:08:32AM +0000, Al Viro wrote: > > > (in #work.namei; used for bcachefs locking fix) > > > From 74d016ecc1a7974664e98d1afbf649cd4e0e0423 Mon Sep 17 00:00:00 2001 > > > From: Al Viro <viro@zeniv.linux.org.uk> > > > Date: Wed, 15 Nov 2023 22:41:27 -0500 > > > Subject: [PATCH 1/2] new helper: user_path_locked_at() > > > > > > Equivalent of kern_path_locked() taking dfd/userland name. > > > User introduced in the next commit. > > > > also applying this: > > -- >8 -- > > > > The locking fix in bch2_ioctl_subvolume_destroy() also needs getname() > > exported; previous patch provided filename_path_locked() > > Not needed anymore... Saw your message about user_path_locked(); dropping these
diff --git a/fs/namei.c b/fs/namei.c index eab372e04767..83dd8b51995a 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -218,6 +218,7 @@ getname(const char __user * filename) { return getname_flags(filename, 0, NULL); } +EXPORT_SYMBOL(getname); struct filename * getname_kernel(const char * filename)