aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r--fs/nilfs2/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 268b563d215a..2f0e9f7bf152 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -262,8 +262,10 @@ static int nilfs_sync_super(struct nilfs_sb_info *sbi)
262 printk(KERN_ERR 262 printk(KERN_ERR
263 "NILFS: unable to write superblock (err=%d)\n", err); 263 "NILFS: unable to write superblock (err=%d)\n", err);
264 else { 264 else {
265 nilfs_dispose_used_segments(nilfs);
266 clear_nilfs_discontinued(nilfs); 265 clear_nilfs_discontinued(nilfs);
266 spin_lock(&nilfs->ns_last_segment_lock);
267 nilfs->ns_prot_seq = le64_to_cpu(nilfs->ns_sbp->s_last_seq);
268 spin_unlock(&nilfs->ns_last_segment_lock);
267 } 269 }
268 270
269 return err; 271 return err;