quota: Properly invalidate caches even for filesystems with blocksize < pagesize
authorJan Kara <jack@suse.cz>
Mon, 22 Feb 2010 20:07:17 +0000 (21:07 +0100)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:27 +0000 (00:20 +0100)
Sometimes invalidate_bdev() can fail to invalidate a part of block
device cache because of dirty data. If the filesystem has blocksize
smaller than page size, this can happen even for pages containing
quota files and thus kernel would operate on stale data. Fix the
issue by syncing the filesystem before invalidating the cache.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>

No differences found