[PATCH] fat: move fat_clusters_flush() to write_super()
It is overkill to update the FS_INFO whenever modifying prev_free/free_clusters, because those are just a hint. So, this patch uses ->write_super() for updating FS_INFO instead. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
9ded96f24c
commit
a6bf6b211c
@@ -67,8 +67,6 @@ void fat_clusters_flush(struct super_block *sb)
|
||||
if (sbi->prev_free != -1)
|
||||
fsinfo->next_cluster = cpu_to_le32(sbi->prev_free);
|
||||
mark_buffer_dirty(bh);
|
||||
if (sb->s_flags & MS_SYNCHRONOUS)
|
||||
sync_dirty_buffer(bh);
|
||||
}
|
||||
brelse(bh);
|
||||
}
|
||||
|
Reference in New Issue
Block a user