aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-11-19 09:21:58 +0100
committerJan Kara <jack@suse.cz>2015-01-21 19:21:30 +0100
commit9c45101e88b2bf2ce36b8833fcfa784a9149aa74 (patch)
tree6444ff15cb9c5a41c156510d7670f5c47f053867 /include/linux/quota.h
parentocfs2: Move OLQF_CLEAN flag out of generic quota flags (diff)
downloadwireguard-linux-9c45101e88b2bf2ce36b8833fcfa784a9149aa74.tar.xz
wireguard-linux-9c45101e88b2bf2ce36b8833fcfa784a9149aa74.zip
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.h14
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 {
struct super_block;
-#define DQF_MASK 0xffff /* Mask for format specific flags */
-#define DQF_GETINFO_MASK 0x1ffff /* Mask for flags passed to userspace */
-#define DQF_SETINFO_MASK 0xffff /* Mask for flags modifiable from userspace */
-#define DQF_SYS_FILE_B 16
-#define DQF_SYS_FILE (1 << DQF_SYS_FILE_B) /* Quota file stored as system file */
-#define DQF_INFO_DIRTY_B 31
+/* Mask for flags passed to userspace */
+#define DQF_GETINFO_MASK (DQF_ROOT_SQUASH | DQF_SYS_FILE)
+/* Mask for flags modifiable from userspace */
+#define DQF_SETINFO_MASK DQF_ROOT_SQUASH
+
+enum {
+ DQF_INFO_DIRTY_B = DQF_PRIVATE,
+};
#define DQF_INFO_DIRTY (1 << DQF_INFO_DIRTY_B) /* Is info dirty? */
extern void mark_info_dirty(struct super_block *sb, int type);