From 20a8f21307d431e79ade7489ddcbe4f2a2beaa99 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 7 May 2010 12:35:40 -0400 Subject: [PATCH] --- yaml --- r: 196253 b: refs/heads/master c: fcbc59f96e38a0999e827be9d04d46b62b53b20a h: refs/heads/master i: 196251: c0e71705df1828b4cc62bffed032e8f90b3188a7 v: v3 --- [refs] | 2 +- trunk/fs/quota/quota.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 7a781d6705fa..440c43729210 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c472b43275976512e4c1c32da5ced03f339cb380 +refs/heads/master: fcbc59f96e38a0999e827be9d04d46b62b53b20a diff --git a/trunk/fs/quota/quota.c b/trunk/fs/quota/quota.c index d6ee49dda4fd..cfc78826da90 100644 --- a/trunk/fs/quota/quota.c +++ b/trunk/fs/quota/quota.c @@ -113,8 +113,6 @@ static int quota_getinfo(struct super_block *sb, int type, void __user *addr) struct if_dqinfo info; int ret; - if (!sb_has_quota_active(sb, type)) - return -ESRCH; if (!sb->s_qcop->get_info) return -ENOSYS; ret = sb->s_qcop->get_info(sb, type, &info); @@ -129,8 +127,6 @@ static int quota_setinfo(struct super_block *sb, int type, void __user *addr) if (copy_from_user(&info, addr, sizeof(info))) return -EFAULT; - if (!sb_has_quota_active(sb, type)) - return -ESRCH; if (!sb->s_qcop->set_info) return -ENOSYS; return sb->s_qcop->set_info(sb, type, &info);