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/segment.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/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 851bcd3890c8..a32d9cb2842a 100644 --- a/fs/nilfs2/segment.c +++ b/fs/nilfs2/segment.c | |||
@@ -2676,6 +2676,7 @@ static void nilfs_segctor_kill_thread(struct nilfs_sc_info *sci) | |||
2676 | static struct nilfs_sc_info *nilfs_segctor_new(struct nilfs_sb_info *sbi, | 2676 | static struct nilfs_sc_info *nilfs_segctor_new(struct nilfs_sb_info *sbi, |
2677 | struct nilfs_root *root) | 2677 | struct nilfs_root *root) |
2678 | { | 2678 | { |
2679 | struct the_nilfs *nilfs = sbi->s_nilfs; | ||
2679 | struct nilfs_sc_info *sci; | 2680 | struct nilfs_sc_info *sci; |
2680 | 2681 | ||
2681 | sci = kzalloc(sizeof(*sci), GFP_KERNEL); | 2682 | sci = kzalloc(sizeof(*sci), GFP_KERNEL); |
@@ -2703,10 +2704,10 @@ static struct nilfs_sc_info *nilfs_segctor_new(struct nilfs_sb_info *sbi, | |||
2703 | sci->sc_mjcp_freq = HZ * NILFS_SC_DEFAULT_SR_FREQ; | 2704 | sci->sc_mjcp_freq = HZ * NILFS_SC_DEFAULT_SR_FREQ; |
2704 | sci->sc_watermark = NILFS_SC_DEFAULT_WATERMARK; | 2705 | sci->sc_watermark = NILFS_SC_DEFAULT_WATERMARK; |
2705 | 2706 | ||
2706 | if (sbi->s_interval) | 2707 | if (nilfs->ns_interval) |
2707 | sci->sc_interval = sbi->s_interval; | 2708 | sci->sc_interval = nilfs->ns_interval; |
2708 | if (sbi->s_watermark) | 2709 | if (nilfs->ns_watermark) |
2709 | sci->sc_watermark = sbi->s_watermark; | 2710 | sci->sc_watermark = nilfs->ns_watermark; |
2710 | return sci; | 2711 | return sci; |
2711 | } | 2712 | } |
2712 | 2713 | ||