summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-02-06 05:57:56 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-06 05:57:56 -0800
commit143845d146b39e0cff995ba43d8cd83739cf61fd (patch)
tree6c4a3bad35a4ab901432f60756e90ba7a33f6c19 /include/linux
parentc34633890093d00135d29153af6429549c8cb974 (diff)
[PATCH] (1/8) ->get_sb() switchover
OK, here comes the long-promised switchover to ->get_sb(). New method added - ->get_sb(type, flags, dev, data). At this point we still keep ->read_super(), but it will go away in the end of series. ->get_sb() is a generalization of get_sb_{bdev,nodev,single}() - as the matter of fact, these will become common helpers used by filesystems in their ->get_sb().
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index f4699a15157d..fd96319ad140 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -926,9 +926,20 @@ struct dquot_operations {
int (*transfer) (struct inode *, struct iattr *);
};
+/*
+ * NOTE NOTE NOTE
+ *
+ * ->read_super() is going to die. New method (->get_sb) should replace
+ * it. The only reason why ->read_super() is left for _SHORT_ transition
+ * period is to avoid a single patch touching every fs. They will be
+ * converted one-by-one and ONCE THAT IS DONE OR TWO WEEKS HAD PASSED
+ * (whatever sooner) ->read_super() WILL DISAPPEAR.
+ */
+
struct file_system_type {
const char *name;
int fs_flags;
+ struct super_block *(*get_sb) (struct file_system_type *, int, char *, void *);
struct super_block *(*read_super) (struct super_block *, void *, int);
struct module *owner;
struct file_system_type * next;