diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-11-21 21:15:42 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:35 -0500 |
commit | f47ec3f28354795f000c14bf18ed967ec81a3ec3 (patch) | |
tree | 662d479706bd948963ad3f9f00c2e6caedbe5a92 /fs/block_dev.c | |
parent | 5ede7b1cfa8201418fb35e12f770e9e7c2559a4d (diff) | |
download | linux-rpi-f47ec3f28354795f000c14bf18ed967ec81a3ec3.tar.gz linux-rpi-f47ec3f28354795f000c14bf18ed967ec81a3ec3.tar.bz2 linux-rpi-f47ec3f28354795f000c14bf18ed967ec81a3ec3.zip |
trim fs/internal.h
some stuff in there can actually become static; some belongs to pnode.h
as it's a private interface between namespace.c and pnode.c...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index b07f1da1de4e..4b322a58a513 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -493,7 +493,7 @@ static struct file_system_type bd_type = { .kill_sb = kill_anon_super, }; -struct super_block *blockdev_superblock __read_mostly; +static struct super_block *blockdev_superblock __read_mostly; void __init bdev_cache_init(void) { @@ -639,6 +639,11 @@ static struct block_device *bd_acquire(struct inode *inode) return bdev; } +static inline int sb_is_blkdev_sb(struct super_block *sb) +{ + return sb == blockdev_superblock; +} + /* Call when you free inode */ void bd_forget(struct inode *inode) |