aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2010-02-16 00:31:49 -0500
committerJan Kara <jack@suse.cz>2010-03-04 18:20:26 -0500
commitad1e6e8da9fe8cb7ecfde8eabacedc3b50fceae4 (patch)
tree0971e2039c2d6feb6763ba018e9c73123d207ddb /fs/quota/dquot.c
parent86963918965eb8fe0c8ae009e7c1b4c630f533d5 (diff)
quota: sb_quota state flags cleanup
- remove hardcoded USRQUOTA/GRPQUOTA flags - convert int to bool for appropriate functions Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r--fs/quota/dquot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 4c2213f7ed36..5a831dc5ab28 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -1301,7 +1301,7 @@ int dquot_initialize(struct inode *inode, int type)
1301{ 1301{
1302 unsigned int id = 0; 1302 unsigned int id = 0;
1303 int cnt, ret = 0; 1303 int cnt, ret = 0;
1304 struct dquot *got[MAXQUOTAS] = { NULL, NULL }; 1304 struct dquot *got[MAXQUOTAS];
1305 struct super_block *sb = inode->i_sb; 1305 struct super_block *sb = inode->i_sb;
1306 qsize_t rsv; 1306 qsize_t rsv;
1307 1307
@@ -1312,6 +1312,7 @@ int dquot_initialize(struct inode *inode, int type)
1312 1312
1313 /* First get references to structures we might need. */ 1313 /* First get references to structures we might need. */
1314 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { 1314 for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
1315 got[cnt] = NULL;
1315 if (type != -1 && cnt != type) 1316 if (type != -1 && cnt != type)
1316 continue; 1317 continue;
1317 switch (cnt) { 1318 switch (cnt) {