Skip to content

Commit 6c29c50

Browse files
committed
quota: Silence warning about PRJQUOTA not being handled in need_print_warning()
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 <jack@suse.cz>
1 parent 66415f6 commit 6c29c50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/quota/dquot.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,8 @@ static int need_print_warning(struct dquot_warn *warn)
11601160
return uid_eq(current_fsuid(), warn->w_dq_id.uid);
11611161
case GRPQUOTA:
11621162
return in_group_p(warn->w_dq_id.gid);
1163+
case PRJQUOTA: /* Never taken... Just make gcc happy */
1164+
return 0;
11631165
}
11641166
return 0;
11651167
}

0 commit comments

Comments
 (0)