summaryrefslogtreecommitdiffstats
path: root/fs/fat/misc.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2006-01-08 10:02:08 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 05:13:46 +0100
commita6bf6b211cdb92c315c24719a522d8b6f3998210 (patch)
treef6719d61b5766014d137a00cc346c1f5d0902869 /fs/fat/misc.c
parent[PATCH] IRQ type flags (diff)
downloadlinux-a6bf6b211cdb92c315c24719a522d8b6f3998210.tar.xz
linux-a6bf6b211cdb92c315c24719a522d8b6f3998210.zip
[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>
Diffstat (limited to '')
-rw-r--r--fs/fat/misc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/fat/misc.c b/fs/fat/misc.c
index 2a0df2122f5d..9b592e37e259 100644
--- a/fs/fat/misc.c
+++ b/fs/fat/misc.c
@@ -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);
}