Commit fcbc59f96e38a0999e827be9d04d46b62b53b20a

Authored by Christoph Hellwig
Committed by Jan Kara
1 parent c472b43275

quota: remove sb_has_quota_active in get/set_info

The methods already do these checks, so remove them in the quotactl
implementation to allow non-VFS quota implementations to also support
these calls.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

... ... @@ -113,8 +113,6 @@
113 113 struct if_dqinfo info;
114 114 int ret;
115 115  
116   - if (!sb_has_quota_active(sb, type))
117   - return -ESRCH;
118 116 if (!sb->s_qcop->get_info)
119 117 return -ENOSYS;
120 118 ret = sb->s_qcop->get_info(sb, type, &info);
... ... @@ -129,8 +127,6 @@
129 127  
130 128 if (copy_from_user(&info, addr, sizeof(info)))
131 129 return -EFAULT;
132   - if (!sb_has_quota_active(sb, type))
133   - return -ESRCH;
134 130 if (!sb->s_qcop->set_info)
135 131 return -ENOSYS;
136 132 return sb->s_qcop->set_info(sb, type, &info);