[PATCH v3 21/39] ubifs: introduce i_dquot to ubifs_inode

Dongsheng Yang yangds.fnst at cn.fujitsu.com
Tue Sep 15 02:02:16 PDT 2015


This commit introduce i_dquot field to ubifs_inode,
this field will be used later to support quota in ubifs.

Signed-off-by: Dongsheng Yang <yangds.fnst at cn.fujitsu.com>
---
 fs/ubifs/ubifs.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 4215c33..99cf10c 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -418,6 +418,9 @@ struct ubifs_inode {
 	loff_t synced_i_size;
 	loff_t ui_size;
 	int flags;
+#ifdef CONFIG_QUOTA
+	struct dquot *i_dquot[MAXQUOTAS];
+#endif
 	pgoff_t last_page_read;
 	pgoff_t read_in_a_row;
 	int data_len;
-- 
1.8.4.2




More information about the linux-mtd mailing list