Add a declaration for fs_subsys
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
@@ -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
Quoted 6 lines · Steven Whitehouse
The
fs_subsysof 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.
Hi,
Quoted 10 lines · Christoph Hellwig
Quoted 6 lines · Steven Whitehouse
The
fs_subsysof 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.