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) |
[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) | |||
221 | } | 221 | } |
222 | 222 | ||
223 | /* | 223 | /* |
224 | * Superblock locking. We really ought to get rid of these two. | ||
225 | */ | ||
226 | void lock_super(struct super_block * sb) | ||
227 | { | ||
228 | get_fs_excl(); | ||
229 | mutex_lock(&sb->s_lock); | ||
230 | } | ||
231 | |||
232 | void unlock_super(struct super_block * sb) | ||
233 | { | ||
234 | put_fs_excl(); | ||
235 | mutex_unlock(&sb->s_lock); | ||
236 | } | ||
237 | |||
238 | EXPORT_SYMBOL(lock_super); | ||
239 | EXPORT_SYMBOL(unlock_super); | ||
240 | |||
241 | /* | ||
224 | * Write out and wait upon all dirty data associated with this | 242 | * Write out and wait upon all dirty data associated with this |
225 | * superblock. Filesystem data as well as the underlying block | 243 | * superblock. Filesystem data as well as the underlying block |
226 | * device. Takes the superblock lock. Requires a second blkdev | 244 | * device. Takes the superblock lock. Requires a second blkdev |