@@ -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 {
Bind disk quota stuff on mount namespace definition. Signed-off-by: Jie Liu <jeff.liu@oracle.com> --- fs/mount.h | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)