diff options
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index 15671cd048b1..aec99ddbe53f 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -571,8 +571,10 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
571 | { | 571 | { |
572 | int retval; | 572 | int retval; |
573 | 573 | ||
574 | #ifdef CONFIG_BLOCK | ||
574 | if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev)) | 575 | if (!(flags & MS_RDONLY) && bdev_read_only(sb->s_bdev)) |
575 | return -EACCES; | 576 | return -EACCES; |
577 | #endif | ||
576 | if (flags & MS_RDONLY) | 578 | if (flags & MS_RDONLY) |
577 | acct_auto_close(sb); | 579 | acct_auto_close(sb); |
578 | shrink_dcache_sb(sb); | 580 | shrink_dcache_sb(sb); |
@@ -692,6 +694,7 @@ void kill_litter_super(struct super_block *sb) | |||
692 | 694 | ||
693 | EXPORT_SYMBOL(kill_litter_super); | 695 | EXPORT_SYMBOL(kill_litter_super); |
694 | 696 | ||
697 | #ifdef CONFIG_BLOCK | ||
695 | static int set_bdev_super(struct super_block *s, void *data) | 698 | static int set_bdev_super(struct super_block *s, void *data) |
696 | { | 699 | { |
697 | s->s_bdev = data; | 700 | s->s_bdev = data; |
@@ -787,6 +790,7 @@ void kill_block_super(struct super_block *sb) | |||
787 | } | 790 | } |
788 | 791 | ||
789 | EXPORT_SYMBOL(kill_block_super); | 792 | EXPORT_SYMBOL(kill_block_super); |
793 | #endif | ||
790 | 794 | ||
791 | int get_sb_nodev(struct file_system_type *fs_type, | 795 | int get_sb_nodev(struct file_system_type *fs_type, |
792 | int flags, void *data, | 796 | int flags, void *data, |