mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [SYSFS] Add a declaration for fs_subsys
@ 2006-09-26 12:45 Steven Whitehouse
  2006-09-26 16:00 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Whitehouse @ 2006-09-26 12:45 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, Andrew Morton, Christoph Hellwig


The fs_subsys of sysfs does not have a declaration in any header
file, despite it being an exported symbol. This patch adds one so
that modules don't have to add their own. This is something used
by GFS2 (and already in the GFS2 tree) but I think can safely be
considered generic infrastructure.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
 include/linux/fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1d3e601..48f9821 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1377,6 +1377,9 @@ extern struct subsystem fs_subsys;
 #define FLOCK_VERIFY_READ  1
 #define FLOCK_VERIFY_WRITE 2
 
+/* /sys/fs */
+extern struct subsystem fs_subsys;
+
 extern int locks_mandatory_locked(struct inode *);
 extern int locks_mandatory_area(int, struct inode *, struct file *, loff_t, size_t);
 
-- 
1.4.1




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

end of thread, other threads:[~2006-09-26 16:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26 12:45 [SYSFS] Add a declaration for fs_subsys Steven Whitehouse
2006-09-26 16:00 ` Christoph Hellwig
2006-09-26 16:18   ` Steven Whitehouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®