* [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
* Re: [SYSFS] Add a declaration for fs_subsys
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
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2006-09-26 16:00 UTC (permalink / raw)
To: Steven Whitehouse; +Cc: gregkh, linux-kernel, Andrew Morton, Christoph Hellwig
On Tue, Sep 26, 2006 at 01:45:11PM +0100, Steven Whitehouse wrote:
>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SYSFS] Add a declaration for fs_subsys
2006-09-26 16:00 ` Christoph Hellwig
@ 2006-09-26 16:18 ` Steven Whitehouse
0 siblings, 0 replies; 3+ messages in thread
From: Steven Whitehouse @ 2006-09-26 16:18 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: gregkh, linux-kernel, Andrew Morton
Hi,
On Tue, 2006-09-26 at 17:00 +0100, Christoph Hellwig wrote:
> On Tue, Sep 26, 2006 at 01:45:11PM +0100, Steven Whitehouse wrote:
> >
> > 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.
^ 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®