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) |
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 = { | |||
493 | .kill_sb = kill_anon_super, | 493 | .kill_sb = kill_anon_super, |
494 | }; | 494 | }; |
495 | 495 | ||
496 | struct super_block *blockdev_superblock __read_mostly; | 496 | static struct super_block *blockdev_superblock __read_mostly; |
497 | 497 | ||
498 | void __init bdev_cache_init(void) | 498 | void __init bdev_cache_init(void) |
499 | { | 499 | { |
@@ -639,6 +639,11 @@ static struct block_device *bd_acquire(struct inode *inode) | |||
639 | return bdev; | 639 | return bdev; |
640 | } | 640 | } |
641 | 641 | ||
642 | static inline int sb_is_blkdev_sb(struct super_block *sb) | ||
643 | { | ||
644 | return sb == blockdev_superblock; | ||
645 | } | ||
646 | |||
642 | /* Call when you free inode */ | 647 | /* Call when you free inode */ |
643 | 648 | ||
644 | void bd_forget(struct inode *inode) | 649 | void bd_forget(struct inode *inode) |