diff options
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r-- | fs/quota/quota.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index d6ee49dda4fd..cfc78826da90 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c | |||
@@ -113,8 +113,6 @@ static int quota_getinfo(struct super_block *sb, int type, void __user *addr) | |||
113 | struct if_dqinfo info; | 113 | struct if_dqinfo info; |
114 | int ret; | 114 | int ret; |
115 | 115 | ||
116 | if (!sb_has_quota_active(sb, type)) | ||
117 | return -ESRCH; | ||
118 | if (!sb->s_qcop->get_info) | 116 | if (!sb->s_qcop->get_info) |
119 | return -ENOSYS; | 117 | return -ENOSYS; |
120 | ret = sb->s_qcop->get_info(sb, type, &info); | 118 | 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) | |||
129 | 127 | ||
130 | if (copy_from_user(&info, addr, sizeof(info))) | 128 | if (copy_from_user(&info, addr, sizeof(info))) |
131 | return -EFAULT; | 129 | return -EFAULT; |
132 | if (!sb_has_quota_active(sb, type)) | ||
133 | return -ESRCH; | ||
134 | if (!sb->s_qcop->set_info) | 130 | if (!sb->s_qcop->set_info) |
135 | return -ENOSYS; | 131 | return -ENOSYS; |
136 | return sb->s_qcop->set_info(sb, type, &info); | 132 | return sb->s_qcop->set_info(sb, type, &info); |