Thread (24 messages) flat view 24 messages, 4 authors, 2014-10-19

Re: [PATCH 01/12] quota: Allow each filesystem to specify which quota types it supports

From: Jan Kara <jack@suse.cz>
Date: 2014-10-10 15:37:27
Also in: linux-fsdevel, linux-xfs, ocfs2-devel

On Fri 10-10-14 10:26:41, Dave Kleikamp wrote:
On 10/10/2014 09:54 AM, Jan Kara wrote:
quoted
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 80d345a3524c..b52539f42e19 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -56,6 +56,11 @@ enum quota_type {
 	PRJQUOTA = 2,		/* element used for project quotas */
 };
 
+/* Masks for quota types when used as a bitmask */
+#define QTYPE_MASK_USER (1 << USRQUOTA)
+#define QTYPE_MASK_GROUP (1 << GRPQUOTA)
+#define QTYPE_MASK_PROJECT (1 << PRJQUOTA)
The uses of these masks use the names QTYPE_MASK_USR, QTYPE_MASK_GRP,
and QTYPE_MASK_PRJ
  Sigh. Friday afternoon isn't a good time for sending out patch sets :(
Thanks for catching this. I'll wait if someone has other feedback before
resending the patches...

								Honza
-- 
Jan Kara [off-list ref]
SUSE Labs, CR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help