diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 21:05:07 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 21:05:07 -0500 |
commit | 574e6c3145c5754141361c695b58736c294a8ae1 (patch) | |
tree | 42fdaf8a107b8a42a1ea239675ac9461e97d0990 /fs/nilfs2/super.c | |
parent | 3b2ce58b0f3c1633750529713be0e467282abd78 (diff) |
nilfs2: move parameters on nilfs_sb_info into nilfs object
This moves four parameter variables on nilfs_sb_info s_resuid,
s_resgid, s_interval and s_watermark to the nilfs object.
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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 0576cb21d699..2f17a2f9ef9c 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -729,7 +729,7 @@ int nilfs_store_magic_and_option(struct super_block *sb, | |||
729 | struct nilfs_super_block *sbp, | 729 | struct nilfs_super_block *sbp, |
730 | char *data) | 730 | char *data) |
731 | { | 731 | { |
732 | struct nilfs_sb_info *sbi = NILFS_SB(sb); | 732 | struct the_nilfs *nilfs = NILFS_SB(sb)->s_nilfs; |
733 | 733 | ||
734 | sb->s_magic = le16_to_cpu(sbp->s_magic); | 734 | sb->s_magic = le16_to_cpu(sbp->s_magic); |
735 | 735 | ||
@@ -740,10 +740,10 @@ int nilfs_store_magic_and_option(struct super_block *sb, | |||
740 | 740 | ||
741 | nilfs_set_default_options(sb, sbp); | 741 | nilfs_set_default_options(sb, sbp); |
742 | 742 | ||
743 | sbi->s_resuid = le16_to_cpu(sbp->s_def_resuid); | 743 | nilfs->ns_resuid = le16_to_cpu(sbp->s_def_resuid); |
744 | sbi->s_resgid = le16_to_cpu(sbp->s_def_resgid); | 744 | nilfs->ns_resgid = le16_to_cpu(sbp->s_def_resgid); |
745 | sbi->s_interval = le32_to_cpu(sbp->s_c_interval); | 745 | nilfs->ns_interval = le32_to_cpu(sbp->s_c_interval); |
746 | sbi->s_watermark = le32_to_cpu(sbp->s_c_block_max); | 746 | nilfs->ns_watermark = le32_to_cpu(sbp->s_c_block_max); |
747 | 747 | ||
748 | return !parse_options(data, sb, 0) ? -EINVAL : 0 ; | 748 | return !parse_options(data, sb, 0) ? -EINVAL : 0 ; |
749 | } | 749 | } |