quota: unify ->set_dqblk
authorChristoph Hellwig <hch@infradead.org>
Thu, 6 May 2010 21:05:17 +0000 (17:05 -0400)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:44 +0000 (19:30 +0200)
commitc472b43275976512e4c1c32da5ced03f339cb380
tree9159fbfd1190456e8b3e699b856022c23f6ec10c
parentb9b2dd36c1bc64430f8e13990ab135cbecc10076
quota: unify ->set_dqblk

Pass the larger struct fs_disk_quota to the ->set_dqblk operation so
that the Q_SETQUOTA and Q_XSETQUOTA operations can be implemented
with a single filesystem operation and we can retire the ->set_xquota
operation.  The additional information (RT-subvolume accounting and
warn counts) are left zero for the VFS quota implementation.

Add new fieldmask values for setting the numer of blocks and inodes
values which is required for the VFS quota, but wasn't for XFS.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/gfs2/quota.c
fs/quota/dquot.c
fs/quota/quota.c
fs/xfs/linux-2.6/xfs_quotaops.c
fs/xfs/quota/xfs_qm_syscalls.c
include/linux/dqblk_xfs.h
include/linux/quota.h
include/linux/quotaops.h