quota: clean up quota active checks
authorChristoph Hellwig <hch@lst.de>
Fri, 4 Jun 2010 08:56:29 +0000 (10:56 +0200)
committerJan Kara <jack@suse.cz>
Wed, 21 Jul 2010 14:01:47 +0000 (16:01 +0200)
commit189eef59e70e3e56edf726864629f310d114eefb
treeeff40faa6d8f4b103f10709892c1b47c8be6ae4e
parentade7ce31c22e961dfbe1a6d57fd362c90c187cbd
quota: clean up quota active checks

The various quota operations check for any quota beeing active on
a superblock, and the inode not having the noquota flag.

Merge these two checks into a dquot_active check and move that
into dquot.c as that's the only place where it's needed.

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