aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-03-21 22:34:55 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-03-21 22:34:55 -0400
commit9d547c35799a4ddd235f1565cec2fff6c9263504 (patch)
treec210684cc48a701943a73a415a42797cef5a13fc
parent91913a2942d2b582c40673956dec1a9c71d32fe4 (diff)
vfs: remove unused superblock helpers
Remove the 'sb_mark_dirty()', 'sb_mark_clean()' and 'sb_is_dirty()' helpers which are not used. I introduced them 2 years and the intention was to make all file-systems use them in order to be able to optimize 'sync_supers()'. However, Al Viro vetoed my patches at the end and asked me to push superblock management down to file-systems and get rid of the 's_dirt' flag completely, as well as kill 'sync_supers()' altogether. Thus, remove the helpers. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--include/linux/fs.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 386da09f229d..526072c073f7 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1870,19 +1870,6 @@ extern struct dentry *mount_pseudo(struct file_system_type *, char *,
1870 const struct dentry_operations *dops, 1870 const struct dentry_operations *dops,
1871 unsigned long); 1871 unsigned long);
1872 1872
1873static inline void sb_mark_dirty(struct super_block *sb)
1874{
1875 sb->s_dirt = 1;
1876}
1877static inline void sb_mark_clean(struct super_block *sb)
1878{
1879 sb->s_dirt = 0;
1880}
1881static inline int sb_is_dirty(struct super_block *sb)
1882{
1883 return sb->s_dirt;
1884}
1885
1886/* Alas, no aliases. Too much hassle with bringing module.h everywhere */ 1873/* Alas, no aliases. Too much hassle with bringing module.h everywhere */
1887#define fops_get(fops) \ 1874#define fops_get(fops) \
1888 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL)) 1875 (((fops) && try_module_get((fops)->owner) ? (fops) : NULL))