diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-06 17:05:17 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-21 13:30:44 -0400 |
commit | c472b43275976512e4c1c32da5ced03f339cb380 (patch) | |
tree | 9159fbfd1190456e8b3e699b856022c23f6ec10c /include/linux/quotaops.h | |
parent | b9b2dd36c1bc64430f8e13990ab135cbecc10076 (diff) |
quota: unify ->set_dqblk
Pass the larger struct fs_disk_quota to the ->set_dqblk operation so
that the Q_SETQUOTA and Q_XSETQUOTA operations can be implemented
with a single filesystem operation and we can retire the ->set_xquota
operation. The additional information (RT-subvolume accounting and
warn counts) are left zero for the VFS quota implementation.
Add new fieldmask values for setting the numer of blocks and inodes
values which is required for the VFS quota, but wasn't for XFS.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quotaops.h')
-rw-r--r-- | include/linux/quotaops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index d32a48631b0d..82c70c42d035 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -65,7 +65,8 @@ int vfs_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii); | |||
65 | int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii); | 65 | int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii); |
66 | int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, | 66 | int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, |
67 | struct fs_disk_quota *di); | 67 | struct fs_disk_quota *di); |
68 | int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, struct if_dqblk *di); | 68 | int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, |
69 | struct fs_disk_quota *di); | ||
69 | 70 | ||
70 | int dquot_transfer(struct inode *inode, struct iattr *iattr); | 71 | int dquot_transfer(struct inode *inode, struct iattr *iattr); |
71 | int vfs_dq_quota_on_remount(struct super_block *sb); | 72 | int vfs_dq_quota_on_remount(struct super_block *sb); |