aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-21 21:15:42 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:52:35 -0500
commitf47ec3f28354795f000c14bf18ed967ec81a3ec3 (patch)
tree662d479706bd948963ad3f9f00c2e6caedbe5a92 /fs/block_dev.c
parent5ede7b1cfa8201418fb35e12f770e9e7c2559a4d (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.c7
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
496struct super_block *blockdev_superblock __read_mostly; 496static struct super_block *blockdev_superblock __read_mostly;
497 497
498void __init bdev_cache_init(void) 498void __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
642static 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
644void bd_forget(struct inode *inode) 649void bd_forget(struct inode *inode)