aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ext4_fs_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ext4_fs_i.h')
-rw-r--r--include/linux/ext4_fs_i.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/include/linux/ext4_fs_i.h b/include/linux/ext4_fs_i.h
index 4395e5206746..18a6ce98537f 100644
--- a/include/linux/ext4_fs_i.h
+++ b/include/linux/ext4_fs_i.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/include/linux/ext3_fs_i.h 2 * linux/include/linux/ext4_fs_i.h
3 * 3 *
4 * Copyright (C) 1992, 1993, 1994, 1995 4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr) 5 * Remy Card (card@masi.ibp.fr)
@@ -13,8 +13,8 @@
13 * Copyright (C) 1991, 1992 Linus Torvalds 13 * Copyright (C) 1991, 1992 Linus Torvalds
14 */ 14 */
15 15
16#ifndef _LINUX_EXT3_FS_I 16#ifndef _LINUX_EXT4_FS_I
17#define _LINUX_EXT3_FS_I 17#define _LINUX_EXT4_FS_I
18 18
19#include <linux/rwsem.h> 19#include <linux/rwsem.h>
20#include <linux/rbtree.h> 20#include <linux/rbtree.h>
@@ -22,43 +22,43 @@
22#include <linux/mutex.h> 22#include <linux/mutex.h>
23 23
24/* data type for block offset of block group */ 24/* data type for block offset of block group */
25typedef int ext3_grpblk_t; 25typedef int ext4_grpblk_t;
26 26
27/* data type for filesystem-wide blocks number */ 27/* data type for filesystem-wide blocks number */
28typedef unsigned long ext3_fsblk_t; 28typedef unsigned long ext4_fsblk_t;
29 29
30#define E3FSBLK "%lu" 30#define E3FSBLK "%lu"
31 31
32struct ext3_reserve_window { 32struct ext4_reserve_window {
33 ext3_fsblk_t _rsv_start; /* First byte reserved */ 33 ext4_fsblk_t _rsv_start; /* First byte reserved */
34 ext3_fsblk_t _rsv_end; /* Last byte reserved or 0 */ 34 ext4_fsblk_t _rsv_end; /* Last byte reserved or 0 */
35}; 35};
36 36
37struct ext3_reserve_window_node { 37struct ext4_reserve_window_node {
38 struct rb_node rsv_node; 38 struct rb_node rsv_node;
39 __u32 rsv_goal_size; 39 __u32 rsv_goal_size;
40 __u32 rsv_alloc_hit; 40 __u32 rsv_alloc_hit;
41 struct ext3_reserve_window rsv_window; 41 struct ext4_reserve_window rsv_window;
42}; 42};
43 43
44struct ext3_block_alloc_info { 44struct ext4_block_alloc_info {
45 /* information about reservation window */ 45 /* information about reservation window */
46 struct ext3_reserve_window_node rsv_window_node; 46 struct ext4_reserve_window_node rsv_window_node;
47 /* 47 /*
48 * was i_next_alloc_block in ext3_inode_info 48 * was i_next_alloc_block in ext4_inode_info
49 * is the logical (file-relative) number of the 49 * is the logical (file-relative) number of the
50 * most-recently-allocated block in this file. 50 * most-recently-allocated block in this file.
51 * We use this for detecting linearly ascending allocation requests. 51 * We use this for detecting linearly ascending allocation requests.
52 */ 52 */
53 __u32 last_alloc_logical_block; 53 __u32 last_alloc_logical_block;
54 /* 54 /*
55 * Was i_next_alloc_goal in ext3_inode_info 55 * Was i_next_alloc_goal in ext4_inode_info
56 * is the *physical* companion to i_next_alloc_block. 56 * is the *physical* companion to i_next_alloc_block.
57 * it the the physical block number of the block which was most-recentl 57 * it the the physical block number of the block which was most-recentl
58 * allocated to this file. This give us the goal (target) for the next 58 * allocated to this file. This give us the goal (target) for the next
59 * allocation when we detect linearly ascending requests. 59 * allocation when we detect linearly ascending requests.
60 */ 60 */
61 ext3_fsblk_t last_alloc_physical_block; 61 ext4_fsblk_t last_alloc_physical_block;
62}; 62};
63 63
64#define rsv_start rsv_window._rsv_start 64#define rsv_start rsv_window._rsv_start
@@ -67,15 +67,15 @@ struct ext3_block_alloc_info {
67/* 67/*
68 * third extended file system inode data in memory 68 * third extended file system inode data in memory
69 */ 69 */
70struct ext3_inode_info { 70struct ext4_inode_info {
71 __le32 i_data[15]; /* unconverted */ 71 __le32 i_data[15]; /* unconverted */
72 __u32 i_flags; 72 __u32 i_flags;
73#ifdef EXT3_FRAGMENTS 73#ifdef EXT4_FRAGMENTS
74 __u32 i_faddr; 74 __u32 i_faddr;
75 __u8 i_frag_no; 75 __u8 i_frag_no;
76 __u8 i_frag_size; 76 __u8 i_frag_size;
77#endif 77#endif
78 ext3_fsblk_t i_file_acl; 78 ext4_fsblk_t i_file_acl;
79 __u32 i_dir_acl; 79 __u32 i_dir_acl;
80 __u32 i_dtime; 80 __u32 i_dtime;
81 81
@@ -87,13 +87,13 @@ struct ext3_inode_info {
87 * near to their parent directory's inode. 87 * near to their parent directory's inode.
88 */ 88 */
89 __u32 i_block_group; 89 __u32 i_block_group;
90 __u32 i_state; /* Dynamic state flags for ext3 */ 90 __u32 i_state; /* Dynamic state flags for ext4 */
91 91
92 /* block reservation info */ 92 /* block reservation info */
93 struct ext3_block_alloc_info *i_block_alloc_info; 93 struct ext4_block_alloc_info *i_block_alloc_info;
94 94
95 __u32 i_dir_start_lookup; 95 __u32 i_dir_start_lookup;
96#ifdef CONFIG_EXT3_FS_XATTR 96#ifdef CONFIG_EXT4DEV_FS_XATTR
97 /* 97 /*
98 * Extended attributes can be read independently of the main file 98 * Extended attributes can be read independently of the main file
99 * data. Taking i_mutex even when reading would cause contention 99 * data. Taking i_mutex even when reading would cause contention
@@ -103,7 +103,7 @@ struct ext3_inode_info {
103 */ 103 */
104 struct rw_semaphore xattr_sem; 104 struct rw_semaphore xattr_sem;
105#endif 105#endif
106#ifdef CONFIG_EXT3_FS_POSIX_ACL 106#ifdef CONFIG_EXT4DEV_FS_POSIX_ACL
107 struct posix_acl *i_acl; 107 struct posix_acl *i_acl;
108 struct posix_acl *i_default_acl; 108 struct posix_acl *i_default_acl;
109#endif 109#endif
@@ -113,7 +113,7 @@ struct ext3_inode_info {
113 /* 113 /*
114 * i_disksize keeps track of what the inode size is ON DISK, not 114 * i_disksize keeps track of what the inode size is ON DISK, not
115 * in memory. During truncate, i_size is set to the new size by 115 * in memory. During truncate, i_size is set to the new size by
116 * the VFS prior to calling ext3_truncate(), but the filesystem won't 116 * the VFS prior to calling ext4_truncate(), but the filesystem won't
117 * set i_disksize to 0 until the truncate is actually under way. 117 * set i_disksize to 0 until the truncate is actually under way.
118 * 118 *
119 * The intent is that i_disksize always represents the blocks which 119 * The intent is that i_disksize always represents the blocks which
@@ -123,7 +123,7 @@ struct ext3_inode_info {
123 * 123 *
124 * The only time when i_disksize and i_size may be different is when 124 * The only time when i_disksize and i_size may be different is when
125 * a truncate is in progress. The only things which change i_disksize 125 * a truncate is in progress. The only things which change i_disksize
126 * are ext3_get_block (growth) and ext3_truncate (shrinkth). 126 * are ext4_get_block (growth) and ext4_truncate (shrinkth).
127 */ 127 */
128 loff_t i_disksize; 128 loff_t i_disksize;
129 129
@@ -131,10 +131,10 @@ struct ext3_inode_info {
131 __u16 i_extra_isize; 131 __u16 i_extra_isize;
132 132
133 /* 133 /*
134 * truncate_mutex is for serialising ext3_truncate() against 134 * truncate_mutex is for serialising ext4_truncate() against
135 * ext3_getblock(). In the 2.4 ext2 design, great chunks of inode's 135 * ext4_getblock(). In the 2.4 ext2 design, great chunks of inode's
136 * data tree are chopped off during truncate. We can't do that in 136 * data tree are chopped off during truncate. We can't do that in
137 * ext3 because whenever we perform intermediate commits during 137 * ext4 because whenever we perform intermediate commits during
138 * truncate, the inode and all the metadata blocks *must* be in a 138 * truncate, the inode and all the metadata blocks *must* be in a
139 * consistent state which allows truncation of the orphans to restart 139 * consistent state which allows truncation of the orphans to restart
140 * during recovery. Hence we must fix the get_block-vs-truncate race 140 * during recovery. Hence we must fix the get_block-vs-truncate race
@@ -144,4 +144,4 @@ struct ext3_inode_info {
144 struct inode vfs_inode; 144 struct inode vfs_inode;
145}; 145};
146 146
147#endif /* _LINUX_EXT3_FS_I */ 147#endif /* _LINUX_EXT4_FS_I */