diff options
Diffstat (limited to 'fs/ext4/ext4_i.h')
| -rw-r--r-- | fs/ext4/ext4_i.h | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/fs/ext4/ext4_i.h b/fs/ext4/ext4_i.h index ef7409f0e7e4..5c124c0ac6d3 100644 --- a/fs/ext4/ext4_i.h +++ b/fs/ext4/ext4_i.h | |||
| @@ -33,38 +33,6 @@ typedef __u32 ext4_lblk_t; | |||
| 33 | /* data type for block group number */ | 33 | /* data type for block group number */ |
| 34 | typedef unsigned long ext4_group_t; | 34 | typedef unsigned long ext4_group_t; |
| 35 | 35 | ||
| 36 | struct ext4_reserve_window { | ||
| 37 | ext4_fsblk_t _rsv_start; /* First byte reserved */ | ||
| 38 | ext4_fsblk_t _rsv_end; /* Last byte reserved or 0 */ | ||
| 39 | }; | ||
| 40 | |||
| 41 | struct ext4_reserve_window_node { | ||
| 42 | struct rb_node rsv_node; | ||
| 43 | __u32 rsv_goal_size; | ||
| 44 | __u32 rsv_alloc_hit; | ||
| 45 | struct ext4_reserve_window rsv_window; | ||
| 46 | }; | ||
| 47 | |||
| 48 | struct ext4_block_alloc_info { | ||
| 49 | /* information about reservation window */ | ||
| 50 | struct ext4_reserve_window_node rsv_window_node; | ||
| 51 | /* | ||
| 52 | * was i_next_alloc_block in ext4_inode_info | ||
| 53 | * is the logical (file-relative) number of the | ||
| 54 | * most-recently-allocated block in this file. | ||
| 55 | * We use this for detecting linearly ascending allocation requests. | ||
| 56 | */ | ||
| 57 | ext4_lblk_t last_alloc_logical_block; | ||
| 58 | /* | ||
| 59 | * Was i_next_alloc_goal in ext4_inode_info | ||
| 60 | * is the *physical* companion to i_next_alloc_block. | ||
| 61 | * it the physical block number of the block which was most-recentl | ||
| 62 | * allocated to this file. This give us the goal (target) for the next | ||
| 63 | * allocation when we detect linearly ascending requests. | ||
| 64 | */ | ||
| 65 | ext4_fsblk_t last_alloc_physical_block; | ||
| 66 | }; | ||
| 67 | |||
| 68 | #define rsv_start rsv_window._rsv_start | 36 | #define rsv_start rsv_window._rsv_start |
| 69 | #define rsv_end rsv_window._rsv_end | 37 | #define rsv_end rsv_window._rsv_end |
| 70 | 38 | ||
| @@ -97,11 +65,8 @@ struct ext4_inode_info { | |||
| 97 | ext4_group_t i_block_group; | 65 | ext4_group_t i_block_group; |
| 98 | __u32 i_state; /* Dynamic state flags for ext4 */ | 66 | __u32 i_state; /* Dynamic state flags for ext4 */ |
| 99 | 67 | ||
| 100 | /* block reservation info */ | ||
| 101 | struct ext4_block_alloc_info *i_block_alloc_info; | ||
| 102 | |||
| 103 | ext4_lblk_t i_dir_start_lookup; | 68 | ext4_lblk_t i_dir_start_lookup; |
| 104 | #ifdef CONFIG_EXT4DEV_FS_XATTR | 69 | #ifdef CONFIG_EXT4_FS_XATTR |
| 105 | /* | 70 | /* |
| 106 | * Extended attributes can be read independently of the main file | 71 | * Extended attributes can be read independently of the main file |
| 107 | * data. Taking i_mutex even when reading would cause contention | 72 | * data. Taking i_mutex even when reading would cause contention |
| @@ -111,7 +76,7 @@ struct ext4_inode_info { | |||
| 111 | */ | 76 | */ |
| 112 | struct rw_semaphore xattr_sem; | 77 | struct rw_semaphore xattr_sem; |
| 113 | #endif | 78 | #endif |
| 114 | #ifdef CONFIG_EXT4DEV_FS_POSIX_ACL | 79 | #ifdef CONFIG_EXT4_FS_POSIX_ACL |
| 115 | struct posix_acl *i_acl; | 80 | struct posix_acl *i_acl; |
| 116 | struct posix_acl *i_default_acl; | 81 | struct posix_acl *i_default_acl; |
| 117 | #endif | 82 | #endif |
