projects/linux·commit 6c29c50f

quota: Silence warning about PRJQUOTA not being handled in need_print_warning()

6c29c50f · Jan Kara <[email protected]> · 2012-10-09 23:30:17 +02:00

PRJQUOTA value of quota type should never reach need_print_warning() since XFS
(which is the only fs which uses that type) doesn't use generic functions
calling this function. Anyway, add PRJQUOTA case to the switch to make gcc
happy.

Signed-off-by: Jan Kara <[email protected]>
Commit
6c29c50fda25c2ac2ce45a9b042ff7e424aa8eac
Parents
66415f6b

Changes

1 files changed · +2 −0

FileStatusAddDelContent
fs/quota/dquot.cmodified+2−0View file

fs/quota/dquot.c

View file
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 557a9c2..05ae3c9 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -1160,6 +1160,8 @@ static int need_print_warning(struct dquot_warn *warn)
return uid_eq(current_fsuid(), warn->w_dq_id.uid);
case GRPQUOTA:
return in_group_p(warn->w_dq_id.gid);
+ case PRJQUOTA: /* Never taken... Just make gcc happy */
+ return 0;
}
return 0;
}