diff options
author | Aditya Kali <adityakali@google.com> | 2011-05-24 19:00:39 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-24 19:00:39 -0400 |
commit | ae81230686282af745ebb7a74c0332349cb9131a (patch) | |
tree | bd293ae7a338e582991ecb2930397fb7b010c6cc /fs/ext4 | |
parent | c5e06d101aaf72f1f2192a661414459775e9bd74 (diff) |
ext4: reserve inodes and feature code for 'quota' feature
I am working on patch to add quota as a built-in feature for ext4
filesystem. The implementation is based on the design given at
https://ext4.wiki.kernel.org/index.php/Design_For_1st_Class_Quota_in_Ext4.
This patch reserves the inode numbers 3 and 4 for quota purposes and
also reserves EXT4_FEATURE_RO_COMPAT_QUOTA feature code.
Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index c0c56c9d5933..2bc4c21f1d26 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -209,6 +209,8 @@ struct ext4_io_submit { | |||
209 | */ | 209 | */ |
210 | #define EXT4_BAD_INO 1 /* Bad blocks inode */ | 210 | #define EXT4_BAD_INO 1 /* Bad blocks inode */ |
211 | #define EXT4_ROOT_INO 2 /* Root inode */ | 211 | #define EXT4_ROOT_INO 2 /* Root inode */ |
212 | #define EXT4_USR_QUOTA_INO 3 /* User quota inode */ | ||
213 | #define EXT4_GRP_QUOTA_INO 4 /* Group quota inode */ | ||
212 | #define EXT4_BOOT_LOADER_INO 5 /* Boot loader inode */ | 214 | #define EXT4_BOOT_LOADER_INO 5 /* Boot loader inode */ |
213 | #define EXT4_UNDEL_DIR_INO 6 /* Undelete directory inode */ | 215 | #define EXT4_UNDEL_DIR_INO 6 /* Undelete directory inode */ |
214 | #define EXT4_RESIZE_INO 7 /* Reserved group descriptors inode */ | 216 | #define EXT4_RESIZE_INO 7 /* Reserved group descriptors inode */ |
@@ -1344,6 +1346,7 @@ static inline void ext4_clear_state_flags(struct ext4_inode_info *ei) | |||
1344 | #define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010 | 1346 | #define EXT4_FEATURE_RO_COMPAT_GDT_CSUM 0x0010 |
1345 | #define EXT4_FEATURE_RO_COMPAT_DIR_NLINK 0x0020 | 1347 | #define EXT4_FEATURE_RO_COMPAT_DIR_NLINK 0x0020 |
1346 | #define EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE 0x0040 | 1348 | #define EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE 0x0040 |
1349 | #define EXT4_FEATURE_RO_COMPAT_QUOTA 0x0100 | ||
1347 | 1350 | ||
1348 | #define EXT4_FEATURE_INCOMPAT_COMPRESSION 0x0001 | 1351 | #define EXT4_FEATURE_INCOMPAT_COMPRESSION 0x0001 |
1349 | #define EXT4_FEATURE_INCOMPAT_FILETYPE 0x0002 | 1352 | #define EXT4_FEATURE_INCOMPAT_FILETYPE 0x0002 |