reiserfs: fix synchronization of quota files in journal=data mode
authorJan Kara <jack@suse.cz>
Fri, 25 Jul 2008 08:46:36 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:33 +0000 (10:53 -0700)
commit5d4f7fddf8882b214e4aabb3bdb37f90a72b2537
treeb8cf1f13c1032367c0160722764adf1cbca9e92a
parent895c23f8c39c0c8d7b536bb2566d4aa968d78be2
reiserfs: fix synchronization of quota files in journal=data mode

In journal=data mode, it is not enough to do write_inode_now() as done in
vfs_quota_on() to write all data to their final location (which is needed for
quota_read to work correctly).  Calling journal_end_sync() before calling
vfs_quota_on() does it's job because transactions are committed to the journal
and data marked as dirty in memory so write_inode_now() writes them to their
final locations.

Cc: <reiserfs-devel@vger.kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/super.c