diff options
Diffstat (limited to 'fs/affs')
-rw-r--r-- | fs/affs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index d7386462a8e7..280d361af41f 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -54,6 +54,7 @@ affs_write_super(struct super_block *sb) | |||
54 | int clean = 2; | 54 | int clean = 2; |
55 | struct affs_sb_info *sbi = AFFS_SB(sb); | 55 | struct affs_sb_info *sbi = AFFS_SB(sb); |
56 | 56 | ||
57 | lock_super(sb); | ||
57 | if (!(sb->s_flags & MS_RDONLY)) { | 58 | if (!(sb->s_flags & MS_RDONLY)) { |
58 | // if (sbi->s_bitmap[i].bm_bh) { | 59 | // if (sbi->s_bitmap[i].bm_bh) { |
59 | // if (buffer_dirty(sbi->s_bitmap[i].bm_bh)) { | 60 | // if (buffer_dirty(sbi->s_bitmap[i].bm_bh)) { |
@@ -66,6 +67,7 @@ affs_write_super(struct super_block *sb) | |||
66 | sb->s_dirt = !clean; /* redo until bitmap synced */ | 67 | sb->s_dirt = !clean; /* redo until bitmap synced */ |
67 | } else | 68 | } else |
68 | sb->s_dirt = 0; | 69 | sb->s_dirt = 0; |
70 | unlock_super(sb); | ||
69 | 71 | ||
70 | pr_debug("AFFS: write_super() at %lu, clean=%d\n", get_seconds(), clean); | 72 | pr_debug("AFFS: write_super() at %lu, clean=%d\n", get_seconds(), clean); |
71 | } | 73 | } |