aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
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) {