Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 071d73cf authored by Ryusuke Konishi's avatar Ryusuke Konishi
Browse files

nilfs2: fix problem in setting checkpoint interval



Checkpoint generation interval of nilfs goes wrong after user has
changed the interval parameter with nilfs-tune tool.

 segctord starting. Construction interval = 5 seconds,
 CP frequency < 30 seconds
 segctord starting. Construction interval = 0 seconds,
 CP frequency < 30 seconds

This turned out to be caused by a trivial bug in initialization code
of log writer.  This will fix it.

Reported-by: default avatarAndrea Gelmini <andrea.gelmini@gmail.com>
Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
parent d4099053
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2573,7 +2573,7 @@ static struct nilfs_sc_info *nilfs_segctor_new(struct super_block *sb,
	sci->sc_watermark = NILFS_SC_DEFAULT_WATERMARK;

	if (nilfs->ns_interval)
		sci->sc_interval = nilfs->ns_interval;
		sci->sc_interval = HZ * nilfs->ns_interval;
	if (nilfs->ns_watermark)
		sci->sc_watermark = nilfs->ns_watermark;
	return sci;