From: Jan Kara Date: Mon, 25 Jan 2016 15:13:53 +0000 (+0100) Subject: quota: Allow Q_GETQUOTA for frozen filesystem X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7955118eafc4;p=deliverable%2Flinux.git 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 --- diff --git a/fs/quota/quota.c b/fs/quota/quota.c index a925f629a00a..8e297c92f7d4 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: