summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-01-25 15:13:53 (GMT)
committerJan Kara <jack@suse.cz>2016-02-09 12:05:23 (GMT)
commit7955118eafc4a2621fd88e92b505919af344583f (patch)
treea62277e46f03e1a116cf1efdaffaec6a22f6e237 /fs
parentba58148b6f0408b791e097ab2967c8f6da959fd9 (diff)
downloadlinux-7955118eafc4a2621fd88e92b505919af344583f.tar.xz
quota: Allow Q_GETQUOTA for frozen filesystem
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/quota/quota.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index a925f62..8e297c9 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -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: