diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-06 21:05:17 (GMT) |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-21 17:30:44 (GMT) |
commit | c472b43275976512e4c1c32da5ced03f339cb380 (patch) | |
tree | 9159fbfd1190456e8b3e699b856022c23f6ec10c /include/linux/dqblk_xfs.h | |
parent | b9b2dd36c1bc64430f8e13990ab135cbecc10076 (diff) | |
download | linux-fsl-qoriq-c472b43275976512e4c1c32da5ced03f339cb380.tar.xz |
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/dqblk_xfs.h')
-rw-r--r-- | include/linux/dqblk_xfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/dqblk_xfs.h b/include/linux/dqblk_xfs.h index 527504c..4389ae7 100644 --- a/include/linux/dqblk_xfs.h +++ b/include/linux/dqblk_xfs.h @@ -110,6 +110,15 @@ typedef struct fs_disk_quota { #define FS_DQ_WARNS_MASK (FS_DQ_BWARNS | FS_DQ_IWARNS | FS_DQ_RTBWARNS) /* + * Accounting values. These can only be set for filesystem with + * non-transactional quotas that require quotacheck(8) in userspace. + */ +#define FS_DQ_BCOUNT (1<<12) +#define FS_DQ_ICOUNT (1<<13) +#define FS_DQ_RTBCOUNT (1<<14) +#define FS_DQ_ACCT_MASK (FS_DQ_BCOUNT | FS_DQ_ICOUNT | FS_DQ_RTBCOUNT) + +/* * Various flags related to quotactl(2). Only relevant to XFS filesystems. */ #define XFS_QUOTA_UDQ_ACCT (1<<0) /* user quota accounting */ |