Skip to content

Commit

Permalink
quota: Allow Q_GETQUOTA for frozen filesystem
Browse files Browse the repository at this point in the history
quota_cmd_write() forgot to list Q_GETQUOTA among commands allowed for
frozen filesystem. Thus Q_GETQUOTA quotactl would unnecessarily block
on frozen filesystems. Fix the issue by properly listing Q_GETQUOTA.

Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Jan Kara committed Feb 9, 2016
1 parent ba58148 commit 7955118
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/quota/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ static int quotactl_cmd_write(int cmd)
switch (cmd) {
case Q_GETFMT:
case Q_GETINFO:
case Q_GETQUOTA:
case Q_GETNEXTQUOTA:
case Q_SYNC:
case Q_XGETQSTAT:
Expand Down

0 comments on commit 7955118

Please sign in to comment.