diff options
author | Jan Kara <[email protected]> | 2012-07-03 16:45:29 +0200 |
---|---|---|
committer | Al Viro <[email protected]> | 2012-07-22 23:58:34 +0400 |
commit | a1177825719ccef3f76ef39bbfd5ebb6087d53c7 (patch) | |
tree | eb7a1137ea6438be224052f17c104cd040a10366 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ceed17236a7491b44ee2be21f56a41ab997cbe7d (diff) |
quota: Move quota syncing to ->sync_fs method
Since the moment writes to quota files are using block device page cache and
space for quota structures is reserved at the moment they are first accessed we
have no reason to sync quota before inode writeback. In fact this order is now
only harmful since quota information can easily change during inode writeback
(either because conversion of delayed-allocated extents or simply because of
allocation of new blocks for simple filesystems not using page_mkwrite).
So move syncing of quota information after writeback of inodes into ->sync_fs
method. This way we do not have to use ->quota_sync callback which is primarily
intended for use by quotactl syscall anyway and we get rid of calling
->sync_fs() twice unnecessarily. We skip quota syncing for OCFS2 since it does
proper quota journalling in all cases (unlike ext3, ext4, and reiserfs which
also support legacy non-journalled quotas) and thus there are no dirty quota
structures.
CC: "Theodore Ts'o" <[email protected]>
CC: Joel Becker <[email protected]>
CC: [email protected]
Acked-by: Steven Whitehouse <[email protected]>
Acked-by: Dave Kleikamp <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions