summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index df5c5fdb0c6f..ab0a05dc8e26 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -683,6 +683,19 @@ struct super_block {
};
/*
+ * Superblock locking.
+ */
+static inline void lock_super(struct super_block * sb)
+{
+ down(&sb->s_lock);
+}
+
+static inline void unlock_super(struct super_block * sb)
+{
+ up(&sb->s_lock);
+}
+
+/*
* VFS helper functions..
*/
extern int vfs_create(struct inode *, struct dentry *, int);