summaryrefslogtreecommitdiffstats
path: root/include/linux/ext4_fs_extents.h
diff options
context:
space:
mode:
authorSuparna Bhattacharya2006-10-11 10:21:06 +0200
committerLinus Torvalds2006-10-11 20:14:16 +0200
commit471d4011a9862efff02094388b8fe8cd67683c38 (patch)
tree7ec2cdd632cf4076517d3c81044643ac65528b9b /include/linux/ext4_fs_extents.h
parent[PATCH] ext4: 48bit physical block number support in extents (diff)
downloadkernel-qcow2-linux-471d4011a9862efff02094388b8fe8cd67683c38.tar.gz
kernel-qcow2-linux-471d4011a9862efff02094388b8fe8cd67683c38.tar.xz
kernel-qcow2-linux-471d4011a9862efff02094388b8fe8cd67683c38.zip
[PATCH] ext4: uninitialised extent handling
Make it possible to add file preallocation support in future as an RO_COMPAT feature by recognizing uninitialized extents as holes and limiting extent length to keep the top bit of ee_len free for marking uninitialized extents. Signed-off-by: Suparna Bhattacharya <suparna@in.ibm.com> Signed-off-by: Mingming Cao <cmm@us.ibm.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>
Diffstat (limited to 'include/linux/ext4_fs_extents.h')
-rw-r--r--include/linux/ext4_fs_extents.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ext4_fs_extents.h b/include/linux/ext4_fs_extents.h
index facc76684d4f..0eba0acf6ba6 100644
--- a/include/linux/ext4_fs_extents.h
+++ b/include/linux/ext4_fs_extents.h
@@ -141,6 +141,8 @@ typedef int (*ext_prepare_callback)(struct inode *, struct ext4_ext_path *,
#define EXT_MAX_BLOCK 0xffffffff
+#define EXT_MAX_LEN ((1UL << 15) - 1)
+
#define EXT_FIRST_EXTENT(__hdr__) \
((struct ext4_extent *) (((char *) (__hdr__)) + \