quota: use flags interface for dquot alloc/free space
authorEric Sandeen <sandeen@redhat.com>
Sun, 16 May 2010 13:00:00 +0000 (09:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 May 2010 13:00:00 +0000 (09:00 -0400)
commit56246f9ae4cfa95b460f9dfbcfb1b772d85db046
tree2a11530806fd384c7a482d7d05f7966af773fef2
parent84061e07c5fbbbf9dc8aef8fb750fc3a2dfc31f3
quota: use flags interface for dquot alloc/free space

Switch __dquot_alloc_space and __dquot_free_space to take flags
to indicate whether to warn and/or to reserve (or free reserve).

This is slightly more readable at the callpoints, and makes it
cleaner to add a "nofail" option in the next patch.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/quota/dquot.c
include/linux/quotaops.h