diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-07 01:19:48 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:39 -0400 |
commit | 026a7d63d55ba8656ed8c8a0733265cc7d47bb8c (patch) | |
tree | 094f32e7aec1c514153b880ce1c6ef4f700fe481 /fs/nilfs2/super.c | |
parent | c486f3895d6dc751f7c0f04f0fa67390ce4d168e (diff) |
nilfs2: get rid of bdi from nilfs object
Nilfs now can use sb->s_bdi to get backing_dev_info, so we use it
instead of ns_bdi on the nilfs object and remove ns_bdi.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r-- | fs/nilfs2/super.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 92e8c769584c..8e77016bafae 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -910,6 +910,7 @@ nilfs_fill_super(struct super_block *sb, void *data, int silent) | |||
910 | struct the_nilfs *nilfs; | 910 | struct the_nilfs *nilfs; |
911 | struct nilfs_sb_info *sbi; | 911 | struct nilfs_sb_info *sbi; |
912 | struct nilfs_root *fsroot; | 912 | struct nilfs_root *fsroot; |
913 | struct backing_dev_info *bdi; | ||
913 | __u64 cno; | 914 | __u64 cno; |
914 | int err; | 915 | int err; |
915 | 916 | ||
@@ -948,7 +949,9 @@ nilfs_fill_super(struct super_block *sb, void *data, int silent) | |||
948 | sb->s_export_op = &nilfs_export_ops; | 949 | sb->s_export_op = &nilfs_export_ops; |
949 | sb->s_root = NULL; | 950 | sb->s_root = NULL; |
950 | sb->s_time_gran = 1; | 951 | sb->s_time_gran = 1; |
951 | sb->s_bdi = nilfs->ns_bdi; | 952 | |
953 | bdi = sb->s_bdev->bd_inode->i_mapping->backing_dev_info; | ||
954 | sb->s_bdi = bdi ? : &default_backing_dev_info; | ||
952 | 955 | ||
953 | err = load_nilfs(nilfs, sbi); | 956 | err = load_nilfs(nilfs, sbi); |
954 | if (err) | 957 | if (err) |