diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-11-05 00:14:04 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-11-05 00:14:04 -0500 |
commit | 498e5f24158da7bf8fa48074a70e370e22844492 (patch) | |
tree | 1434b349c8eca3b0667af0b385533cbcd599c1c3 /fs/ext4/ext4_i.h | |
parent | a9df9a49102f3578909cba7bd33784eb3b9caaa4 (diff) |
ext4: Change unsigned long to unsigned int
Convert the unsigned longs that are most responsible for bloating the
stack usage on 64-bit systems.
Nearly all places in the ext3/4 code which uses "unsigned long" is
probably a bug, since on 32-bit systems a ulong a 32-bits, which means
we are wasting stack space on 64-bit systems.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_i.h')
-rw-r--r-- | fs/ext4/ext4_i.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/ext4/ext4_i.h b/fs/ext4/ext4_i.h index 0a9ebe580195..e69acc16f5c4 100644 --- a/fs/ext4/ext4_i.h +++ b/fs/ext4/ext4_i.h | |||
@@ -100,9 +100,6 @@ struct ext4_inode_info { | |||
100 | */ | 100 | */ |
101 | loff_t i_disksize; | 101 | loff_t i_disksize; |
102 | 102 | ||
103 | /* on-disk additional length */ | ||
104 | __u16 i_extra_isize; | ||
105 | |||
106 | /* | 103 | /* |
107 | * i_data_sem is for serialising ext4_truncate() against | 104 | * i_data_sem is for serialising ext4_truncate() against |
108 | * ext4_getblock(). In the 2.4 ext2 design, great chunks of inode's | 105 | * ext4_getblock(). In the 2.4 ext2 design, great chunks of inode's |
@@ -129,10 +126,14 @@ struct ext4_inode_info { | |||
129 | spinlock_t i_prealloc_lock; | 126 | spinlock_t i_prealloc_lock; |
130 | 127 | ||
131 | /* allocation reservation info for delalloc */ | 128 | /* allocation reservation info for delalloc */ |
132 | unsigned long i_reserved_data_blocks; | 129 | unsigned int i_reserved_data_blocks; |
133 | unsigned long i_reserved_meta_blocks; | 130 | unsigned int i_reserved_meta_blocks; |
134 | unsigned long i_allocated_meta_blocks; | 131 | unsigned int i_allocated_meta_blocks; |
135 | unsigned short i_delalloc_reserved_flag; | 132 | unsigned short i_delalloc_reserved_flag; |
133 | |||
134 | /* on-disk additional length */ | ||
135 | __u16 i_extra_isize; | ||
136 | |||
136 | spinlock_t i_block_reservation_lock; | 137 | spinlock_t i_block_reservation_lock; |
137 | }; | 138 | }; |
138 | 139 | ||