summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_extents.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-01-10 18:13:03 +0100
committerTheodore Ts'o <tytso@mit.edu>2011-01-10 18:13:03 +0100
commit01f49d0b9d0209dc1194255b11601e4b94447b36 (patch)
treec3ec53c7725bf7a9188e844d8c8c09432d2be6ae /fs/ext4/ext4_extents.h
parentext4: replace i_delalloc_reserved_flag with EXT4_STATE_DELALLOC_RESERVED (diff)
downloadlinux-01f49d0b9d0209dc1194255b11601e4b94447b36.tar.xz
linux-01f49d0b9d0209dc1194255b11601e4b94447b36.zip
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/ext4_extents.h')
-rw-r--r--fs/ext4/ext4_extents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_extents.h b/fs/ext4/ext4_extents.h
index 28ce70fd9cd0..dfdda1766927 100644
--- a/fs/ext4/ext4_extents.h
+++ b/fs/ext4/ext4_extents.h
@@ -278,7 +278,7 @@ static inline void ext4_idx_store_pblock(struct ext4_extent_idx *ix,
}
extern int ext4_ext_calc_metadata_amount(struct inode *inode,
- sector_t lblocks);
+ ext4_lblk_t lblocks);
extern int ext4_extent_tree_init(handle_t *, struct inode *);
extern int ext4_ext_calc_credits_for_single_extent(struct inode *inode,
int num,