Commit 914e26379decf1fd984b22e51fd2e4209b7a7f1b
1 parent
f6a570333e
Exists in
master
and in
7 other branches
[PATCH] severing fs.h, radix-tree.h -> sched.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 22 changed files with 44 additions and 31 deletions Side-by-side Diff
- arch/i386/kernel/acpi/cstate.c
- drivers/acpi/dock.c
- drivers/char/hw_random/core.c
- drivers/char/tpm/tpm.h
- drivers/hwmon/hdaps.c
- drivers/spi/spi_butterfly.c
- fs/9p/conv.c
- fs/9p/fcall.c
- fs/9p/fid.c
- fs/9p/v9fs.c
- fs/9p/vfs_dir.c
- fs/9p/vfs_file.c
- fs/inotify.c
- fs/jffs2/acl.c
- fs/jffs2/wbuf.c
- fs/jfs/ioctl.c
- fs/proc/root.c
- fs/super.c
- fs/sync.c
- fs/utimes.c
- include/linux/fs.h
- include/linux/radix-tree.h
arch/i386/kernel/acpi/cstate.c
drivers/acpi/dock.c
drivers/char/hw_random/core.c
drivers/char/tpm/tpm.h
drivers/hwmon/hdaps.c
drivers/spi/spi_butterfly.c
fs/9p/conv.c
fs/9p/fcall.c
fs/9p/fid.c
fs/9p/v9fs.c
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/inotify.c
fs/jffs2/acl.c
fs/jffs2/wbuf.c
fs/jfs/ioctl.c
fs/proc/root.c
fs/super.c
... | ... | @@ -221,6 +221,24 @@ |
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 | 242 | * Write out and wait upon all dirty data associated with this |
225 | 243 | * superblock. Filesystem data as well as the underlying block |
226 | 244 | * device. Takes the superblock lock. Requires a second blkdev |
fs/sync.c
fs/utimes.c
include/linux/fs.h
... | ... | @@ -276,7 +276,7 @@ |
276 | 276 | #include <linux/radix-tree.h> |
277 | 277 | #include <linux/prio_tree.h> |
278 | 278 | #include <linux/init.h> |
279 | -#include <linux/sched.h> | |
279 | +#include <linux/pid.h> | |
280 | 280 | #include <linux/mutex.h> |
281 | 281 | |
282 | 282 | #include <asm/atomic.h> |
283 | 283 | |
... | ... | @@ -977,36 +977,13 @@ |
977 | 977 | #define vfs_check_frozen(sb, level) \ |
978 | 978 | wait_event((sb)->s_wait_unfrozen, ((sb)->s_frozen < (level))) |
979 | 979 | |
980 | -static inline void get_fs_excl(void) | |
981 | -{ | |
982 | - atomic_inc(¤t->fs_excl); | |
983 | -} | |
980 | +#define get_fs_excl() atomic_inc(¤t->fs_excl) | |
981 | +#define put_fs_excl() atomic_dec(¤t->fs_excl) | |
982 | +#define has_fs_excl() atomic_read(¤t->fs_excl) | |
984 | 983 | |
985 | -static inline void put_fs_excl(void) | |
986 | -{ | |
987 | - atomic_dec(¤t->fs_excl); | |
988 | -} | |
989 | - | |
990 | -static inline int has_fs_excl(void) | |
991 | -{ | |
992 | - return atomic_read(¤t->fs_excl); | |
993 | -} | |
994 | - | |
995 | - | |
996 | -/* | |
997 | - * Superblock locking. | |
998 | - */ | |
999 | -static inline void lock_super(struct super_block * sb) | |
1000 | -{ | |
1001 | - get_fs_excl(); | |
1002 | - mutex_lock(&sb->s_lock); | |
1003 | -} | |
1004 | - | |
1005 | -static inline void unlock_super(struct super_block * sb) | |
1006 | -{ | |
1007 | - put_fs_excl(); | |
1008 | - mutex_unlock(&sb->s_lock); | |
1009 | -} | |
984 | +/* not quite ready to be deprecated, but... */ | |
985 | +extern void lock_super(struct super_block *); | |
986 | +extern void unlock_super(struct super_block *); | |
1010 | 987 | |
1011 | 988 | /* |
1012 | 989 | * VFS helper functions.. |