diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-03 16:25:58 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-03 16:25:58 -0800 |
commit | 0f3278d14f0255e4cd9e07ccefc33ff12d8bb59c (patch) | |
tree | 9bbb209cab841f700162a96e158dfa3ecd361f46 /fs/quota.c | |
parent | 06024f217d607369f0ee0071034ebb03071d5fb2 (diff) | |
parent | 15c84a470116b2a3b58a7353a6cf711c29a91854 (diff) | |
download | op-kernel-dev-0f3278d14f0255e4cd9e07ccefc33ff12d8bb59c.zip op-kernel-dev-0f3278d14f0255e4cd9e07ccefc33ff12d8bb59c.tar.gz |
Merge git://oss.sgi.com:8090/oss/git/xfs-2.6
Diffstat (limited to 'fs/quota.c')
-rw-r--r-- | fs/quota.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -118,6 +118,10 @@ static int xqm_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t i if (!sb->s_qcop->get_xquota) return -ENOSYS; break; + case Q_XQUOTASYNC: + if (!sb->s_qcop->quota_sync) + return -ENOSYS; + break; default: return -EINVAL; } @@ -128,7 +132,7 @@ static int xqm_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t i (type == XQM_GRPQUOTA && !in_egroup_p(id))) && !capable(CAP_SYS_ADMIN)) return -EPERM; - } else if (cmd != Q_XGETQSTAT) { + } else if (cmd != Q_XGETQSTAT && cmd != Q_XQUOTASYNC) { if (!capable(CAP_SYS_ADMIN)) return -EPERM; } @@ -322,6 +326,8 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, void return -EFAULT; return 0; } + case Q_XQUOTASYNC: + return sb->s_qcop->quota_sync(sb, type); /* We never reach here unless validity check is broken */ default: BUG(); |