[PATCH] severing fs.h, radix-tree.h -> sched.h

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2006-10-18 13:55:46 -04:00
commit 914e26379d
22 changed files with 44 additions and 31 deletions

View file

@ -220,6 +220,24 @@ static int grab_super(struct super_block *s) __releases(sb_lock)
return 0;
}
/*
* 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