quota: provide function to grab quota structure reference
authorJan Kara <jack@suse.cz>
Thu, 3 Apr 2014 21:46:55 +0000 (14:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:20:54 +0000 (16:20 -0700)
commit9f985cb6c45bc3f8b7e161c9658d409d051d576f
treec9c9d1431fd3a7a002ed17b095e981bcf2cb30a3
parentbd62ad7aebd8e8895bb7649ace948040332f27d3
quota: provide function to grab quota structure reference

Provide dqgrab() function to get quota structure reference when we are
sure it already has at least one active reference.  Make use of this
function inside quota code.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/quota/dquot.c
include/linux/quotaops.h