diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2010-02-16 08:31:49 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-03-05 00:20:26 +0100 |
commit | ad1e6e8da9fe8cb7ecfde8eabacedc3b50fceae4 (patch) | |
tree | 0971e2039c2d6feb6763ba018e9c73123d207ddb /fs/quota/dquot.c | |
parent | 86963918965eb8fe0c8ae009e7c1b4c630f533d5 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 4c2213f7ed3..5a831dc5ab2 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -1301,7 +1301,7 @@ int dquot_initialize(struct inode *inode, int type) { unsigned int id = 0; int cnt, ret = 0; - struct dquot *got[MAXQUOTAS] = { NULL, NULL }; + struct dquot *got[MAXQUOTAS]; struct super_block *sb = inode->i_sb; qsize_t rsv; @@ -1312,6 +1312,7 @@ int dquot_initialize(struct inode *inode, int type) /* First get references to structures we might need. */ for (cnt = 0; cnt < MAXQUOTAS; cnt++) { + got[cnt] = NULL; if (type != -1 && cnt != type) continue; switch (cnt) { |