]> git.baikalelectronics.ru Git - kernel.git/commit
quota: move code from sync_quota_sb into vfs_quota_sync
authorChristoph Hellwig <hch@infradead.org>
Tue, 16 Feb 2010 08:44:52 +0000 (03:44 -0500)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:24 +0000 (00:20 +0100)
commita985cc1a64193b2e3f21c5425004e21e4c8ba68a
treef49d1b8b7fe9feffbdd1afba18047001f5d7228f
parentce7f0571560b292cd07b2ae3c05fe4ac2b0de455
quota: move code from sync_quota_sb into vfs_quota_sync

Currenly sync_quota_sb does a lot of sync and truncate action that only
applies to "VFS" style quotas and is actively harmful for the sync
performance in XFS.  Move it into vfs_quota_sync and add a wait parameter
to ->quota_sync to tell if we need it or not.

My audit of the GFS2 code says it's also not needed given the way GFS2
implements quotas, but I'd be happy if this can get a detailed review.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/gfs2/quota.c
fs/gfs2/quota.h
fs/gfs2/super.c
fs/gfs2/sys.c
fs/quota/dquot.c
fs/quota/quota.c
fs/sync.c
include/linux/quota.h
include/linux/quotaops.h