summaryrefslogtreecommitdiffstats
path: root/fs/fat/misc.c
diff options
context:
space:
mode:
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>2006-01-08 01:02:08 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-08 20:13:46 -0800
commita6bf6b211cdb92c315c24719a522d8b6f3998210 (patch)
treef6719d61b5766014d137a00cc346c1f5d0902869 /fs/fat/misc.c
parent9ded96f24c3a5fcbef954e88c443385a1af37eb9 (diff)
downloadop-kernel-dev-a6bf6b211cdb92c315c24719a522d8b6f3998210.zip
op-kernel-dev-a6bf6b211cdb92c315c24719a522d8b6f3998210.tar.gz
[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 'fs/fat/misc.c')
-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 2a0df21..9b592e3 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);
}
OpenPOWER on IntegriCloud