diff options
author | Jan Kara <jack@suse.cz> | 2014-11-19 03:21:58 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-21 13:21:30 -0500 |
commit | 9c45101e88b2bf2ce36b8833fcfa784a9149aa74 (patch) | |
tree | 6444ff15cb9c5a41c156510d7670f5c47f053867 /include/linux/quota.h | |
parent | 96827adcc2d0eed3fdf7f88e73a50a83b23def96 (diff) |
quota: Cleanup flags definitions
Currently all quota flags were defined just in kernel-private headers.
Export flags readable / writeable from userspace to userspace via
include/uapi/linux/quota.h.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r-- | include/linux/quota.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 50978b781a19..0c42113607ce 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -223,12 +223,14 @@ struct mem_dqinfo { | |||
223 | 223 | ||
224 | struct super_block; | 224 | struct super_block; |
225 | 225 | ||
226 | #define DQF_MASK 0xffff /* Mask for format specific flags */ | 226 | /* Mask for flags passed to userspace */ |
227 | #define DQF_GETINFO_MASK 0x1ffff /* Mask for flags passed to userspace */ | 227 | #define DQF_GETINFO_MASK (DQF_ROOT_SQUASH | DQF_SYS_FILE) |
228 | #define DQF_SETINFO_MASK 0xffff /* Mask for flags modifiable from userspace */ | 228 | /* Mask for flags modifiable from userspace */ |
229 | #define DQF_SYS_FILE_B 16 | 229 | #define DQF_SETINFO_MASK DQF_ROOT_SQUASH |
230 | #define DQF_SYS_FILE (1 << DQF_SYS_FILE_B) /* Quota file stored as system file */ | 230 | |
231 | #define DQF_INFO_DIRTY_B 31 | 231 | enum { |
232 | DQF_INFO_DIRTY_B = DQF_PRIVATE, | ||
233 | }; | ||
232 | #define DQF_INFO_DIRTY (1 << DQF_INFO_DIRTY_B) /* Is info dirty? */ | 234 | #define DQF_INFO_DIRTY (1 << DQF_INFO_DIRTY_B) /* Is info dirty? */ |
233 | 235 | ||
234 | extern void mark_info_dirty(struct super_block *sb, int type); | 236 | extern void mark_info_dirty(struct super_block *sb, int type); |