Skip to content

Commit a86c618

Browse files
Alex TomasLinus Torvalds
authored andcommitted
[PATCH] ext3: add extent map support
On disk extents format: /* * this is extent on-disk structure * it's used at the bottom of the tree */ struct ext3_extent { __le32 ee_block; /* first logical block extent covers */ __le16 ee_len; /* number of blocks covered by extent */ __le16 ee_start_hi; /* high 16 bits of physical block */ __le32 ee_start; /* low 32 bigs of physical block */ }; Signed-off-by: Alex Tomas <alex@clusterfs.com> Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c3fcc81 commit a86c618

12 files changed

Lines changed: 2368 additions & 18 deletions

File tree

‎fs/ext4/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
obj-$(CONFIG_EXT4DEV_FS) += ext4dev.o
66

77
ext4dev-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
8-
ioctl.o namei.o super.o symlink.o hash.o resize.o
8+
ioctl.o namei.o super.o symlink.o hash.o resize.o extents.o
99

1010
ext4dev-$(CONFIG_EXT4DEV_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
1111
ext4dev-$(CONFIG_EXT4DEV_FS_POSIX_ACL) += acl.o

‎fs/ext4/dir.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ static int ext4_readdir(struct file * filp,
134134
struct buffer_head *bh = NULL;
135135

136136
map_bh.b_state = 0;
137-
err = ext4_get_blocks_handle(NULL, inode, blk, 1,
138-
&map_bh, 0, 0);
137+
err = ext4_get_blocks_wrap(NULL, inode, blk, 1, &map_bh, 0, 0);
139138
if (err > 0) {
140139
page_cache_readahead(sb->s_bdev->bd_inode->i_mapping,
141140
&filp->f_ra,

0 commit comments

Comments
 (0)