Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12231
b: refs/heads/master
c: de69e5f
h: refs/heads/master
i:
  12229: a90c76c
  12227: ff53b5c
  12223: c054f34
v: v3
  • Loading branch information
Nathan Scott committed Nov 3, 2005
1 parent c677c0a commit 531626f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2f8e178ad3e576d107f5d9d47c056dd57221857
refs/heads/master: de69e5f44ecbf1d9faca4f473f4210473d26cd41
8 changes: 7 additions & 1 deletion trunk/fs/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/dqblk_xfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define Q_XSETQLIM XQM_CMD(4) /* set disk limits */
#define Q_XGETQSTAT XQM_CMD(5) /* get quota subsystem status */
#define Q_XQUOTARM XQM_CMD(6) /* free disk space used by dquots */
#define Q_XQUOTASYNC XQM_CMD(7) /* delalloc flush, updates dquots */

/*
* fs_disk_quota structure:
Expand Down

0 comments on commit 531626f

Please sign in to comment.