Skip to content

Commit

Permalink
quota: remove sb_has_quota_active in get/set_info
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
Christoph Hellwig authored and jankara committed May 21, 2010
1 parent c472b43 commit fcbc59f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/quota/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit fcbc59f

Please sign in to comment.