[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1338389946-13711-6-git-send-email-jeff.liu@oracle.com>
Date: Wed, 30 May 2012 22:58:59 +0800
From: jeff.liu@...cle.com
To: containers@...ts.linux-foundation.org
Cc: cgroups@...r.kernel.org, jack@...e.cz, glommer@...allels.com,
daniel.lezcano@...e.fr, tytso@....edu, bpm@....com,
chris.mason@...cle.com, hch@...radead.org,
christopher.jones@...cle.com, david@...morbit.com,
tinguely@....com, tm@....ma, linux-ext4@...r.kernel.org,
linux-fsdevel@...r.kernel.org, Jie Liu <jeff.liu@...cle.com>
Subject: [PATCH 05/12] container quota: bind disk quota stuff on mount namespace.
Bind disk quota stuff on mount namespace definition.
Signed-off-by: Jie Liu <jeff.liu@...cle.com>
---
fs/mount.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/fs/mount.h b/fs/mount.h
index 4ef36d9..5b9de40 100644
--- a/fs/mount.h
+++ b/fs/mount.h
@@ -2,12 +2,24 @@
#include <linux/seq_file.h>
#include <linux/poll.h>
+#ifdef CONFIG_NS_QUOTA
+#include "ns_quota.h"
+#endif
+
struct mnt_namespace {
atomic_t count;
struct mount * root;
struct list_head list;
wait_queue_head_t poll;
int event;
+#ifdef CONFIG_NS_QUOTA
+ /* All things regarding disk quota on mount namespace */
+ struct ns_quota_info *ns_dqinfo;
+ /* Mount namespace disk quota control operations */
+ const struct ns_quotactl_ops *ns_qcop;
+ /* Mount namespace disk quota operations */
+ const struct ns_dquot_ops *ns_dqop;
+#endif
};
struct mnt_pcp {
--
1.7.9
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists