diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:13:03 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:13:03 -0500 |
commit | 01f49d0b9d0209dc1194255b11601e4b94447b36 (patch) | |
tree | c3ec53c7725bf7a9188e844d8c8c09432d2be6ae /fs/ext4/extents.c | |
parent | f232109773ff5b0c840a6761d74940b9cf0d66ec (diff) |
ext4: use ext4_lblk_t instead of sector_t for logical blocks
This fixes a number of places where we used sector_t instead of
ext4_lblk_t for logical blocks, which for ext4 are still 32-bit data
types. No point wasting space in the ext4_inode_info structure, and
requiring 64-bit arithmetic on 32-bit systems, when it isn't
necessary.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index d53e20f53103..f1a4354ea3cf 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -266,7 +266,7 @@ static inline int ext4_ext_space_root_idx(struct inode *inode, int check) | |||
266 | * to allocate @blocks | 266 | * to allocate @blocks |
267 | * Worse case is one block per extent | 267 | * Worse case is one block per extent |
268 | */ | 268 | */ |
269 | int ext4_ext_calc_metadata_amount(struct inode *inode, sector_t lblock) | 269 | int ext4_ext_calc_metadata_amount(struct inode *inode, ext4_lblk_t lblock) |
270 | { | 270 | { |
271 | struct ext4_inode_info *ei = EXT4_I(inode); | 271 | struct ext4_inode_info *ei = EXT4_I(inode); |
272 | int idxs, num = 0; | 272 | int idxs, num = 0; |