]> git.baikalelectronics.ru Git - kernel.git/commit
quota: cleanup dquota sync functions (version 4)
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Apr 2009 14:43:54 +0000 (16:43 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 12 Jun 2009 01:36:04 +0000 (21:36 -0400)
commit6ad26b9c4675f700d1d4e142054a596137f0e8cc
treea076f135430380d2ffaeb041ee53d09352cb2752
parentedbbef8aa8e80decef7bd118367b0da5113762ea
quota: cleanup dquota sync functions (version 4)

Currently the VFS calls vfs_dq_sync to sync out disk quotas for a given
superblock.  This is a small wrapper around sync_dquots which for the
case of a non-NULL superblock is a small wrapper around quota_sync_sb.

Just make quota_sync_sb global (rename it to sync_quota_sb) and call it
directly.  Also call it directly for those cases in quota.c that have a
superblock and leave sync_dquots purely an iterator over sync_quota_sb and
remove it's superblock argument.

To make this nicer move the check for the lack of a quota_sync method
from the callers into sync_quota_sb.

[folded build fix from Alexander Beregalov <a.beregalov@gmail.com>]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/quota/quota.c
fs/sync.c
include/linux/quotaops.h