linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: export vfs_stat() and vfs_fstatat()
@ 2020-11-26  7:15 Yicong Yang
  2020-11-26  7:18 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Yicong Yang @ 2020-11-26  7:15 UTC (permalink / raw)
  To: viro, linux-fsdevel; +Cc: hch, linux-kernel, prime.zeng, linuxarm, yangyicong

The public function vfs_stat() and vfs_fstatat() are
unexported after moving out of line in
commit 09f1bde4017e ("fs: move vfs_fstatat out of line"),
which will prevent the using in kernel modules.
So make them exported.

Fixes: 09f1bde4017e ("fs: move vfs_fstatat out of line")
Reported-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
---
 fs/stat.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/stat.c b/fs/stat.c
index dacecdd..7d690c6 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -147,6 +147,7 @@ int vfs_fstat(int fd, struct kstat *stat)
 	fdput(f);
 	return error;
 }
+EXPORT_SYMBOL(vfs_fstat);

 /**
  * vfs_statx - Get basic and extra attributes by filename
@@ -207,6 +208,7 @@ int vfs_fstatat(int dfd, const char __user *filename,
 	return vfs_statx(dfd, filename, flags | AT_NO_AUTOMOUNT,
 			 stat, STATX_BASIC_STATS);
 }
+EXPORT_SYMBOL(vfs_fstatat);

 #ifdef __ARCH_WANT_OLD_STAT

--
2.8.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-26 10:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-26  7:15 [PATCH] fs: export vfs_stat() and vfs_fstatat() Yicong Yang
2020-11-26  7:18 ` Christoph Hellwig
2020-11-26  9:08   ` Yicong Yang
2020-11-26  9:15     ` Christoph Hellwig
2020-11-26  9:48       ` Yicong Yang
2020-11-26  9:50         ` Christoph Hellwig
2020-11-26 10:44           ` Yicong Yang

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).