diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-10-18 13:55:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-12-04 02:00:24 -0500 |
commit | 914e26379decf1fd984b22e51fd2e4209b7a7f1b (patch) | |
tree | 4f20ee40e959699e344cdff0e117d309d238f6be /fs/super.c | |
parent | f6a570333e554b48ad589e7137c77c57809eee81 (diff) | |
download | lwn-914e26379decf1fd984b22e51fd2e4209b7a7f1b.tar.gz lwn-914e26379decf1fd984b22e51fd2e4209b7a7f1b.zip |
[PATCH] severing fs.h, radix-tree.h -> sched.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index 47e554c12e76..84c320f6ad7e 100644 --- a/fs/super.c +++ b/fs/super.c @@ -221,6 +221,24 @@ static int grab_super(struct super_block *s) __releases(sb_lock) } /* + * Superblock locking. We really ought to get rid of these two. + */ +void lock_super(struct super_block * sb) +{ + get_fs_excl(); + mutex_lock(&sb->s_lock); +} + +void unlock_super(struct super_block * sb) +{ + put_fs_excl(); + mutex_unlock(&sb->s_lock); +} + +EXPORT_SYMBOL(lock_super); +EXPORT_SYMBOL(unlock_super); + +/* * Write out and wait upon all dirty data associated with this * superblock. Filesystem data as well as the underlying block * device. Takes the superblock lock. Requires a second blkdev |