]> git.baikalelectronics.ru Git - kernel.git/commit
quota: simplify permission checking
authorChristoph Hellwig <hch@infradead.org>
Tue, 16 Feb 2010 08:44:50 +0000 (03:44 -0500)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:22 +0000 (00:20 +0100)
commit4e669d67364a2cdce22060368fee42de58f80cba
treedcb9b4e11c4429ee79198ee3a7de43d734c1cbfe
parent8827272a2ad055d055149f843740f317e62fe72e
quota: simplify permission checking

Stop having complicated different routines for checking permissions for
XQM vs "VFS" quotas.  Instead do the checks for having sb->s_qcop and
a valid type directly in do_quotactl, and munge the *quotactl_valid functions
into a check_quotactl_permission helper that only checks for permissions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c