Skip to contentSkip to conversation

Add a declaration for fs_subsys

SYSFS Steven Whitehouse 2 participants 3 messages Sep 26, 2006 VFS

lore
Share & tools
lore
#0 lore raw

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.

---
 include/linux/fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/fs.h +3 -0
index 1d3e601..48f9821 100644
@@ -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);
 
Signature · 1 line
1.4.1
#1 lore raw
Quoted 6 lines · Steven Whitehouse

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.

The declaration seem to be already present in Linus' current tree.

#2 lore raw

Hi,

Quoted 10 lines · Christoph Hellwig
Quoted 6 lines · Steven Whitehouse

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.

The declaration seem to be already present in Linus' current tree.

Oops. Sorry, I'd totally missed that. I've backed out the second declaration from the GFS2 tree,

Steve.