ext4-patch-queue rebased to 2.6.22
Per our discussion on the call, I've moved the fallocate patches back up to the front of the queue, and rebased the syscall numbers to 2.6.22. So we're just waiting for Amit to make the minor on-disk format change Andreas suggested before we push to Linus.
- Ted
Quoted 2 lines · Theodore Ts'o
Per our discussion on the call, I've moved the fallocate patches back up to the front of the queue, and rebased the syscall numbers to 2.6.22.
I updated the ext4 patch queue.
It seem there is conflict to apply delayed allocation patch, fixed it.
Also I removed the ext4_no_inode_version mount option patch per our discussion this morning.
At last, applied a few clean ups from Aneesh to the ext4 patch queue.
(quoted diff) +0 -0
b/ext4-fallocate-1-syscall_i386_amd64_ppc
index 0f88bc9..91a8708 100644
ext4-fallocate-1-syscall_i386_amd64_ppc +1 -1
@@ -221,7 +221,7 @@ Index: linux-2.6.22-rc6/include/asm-x86_64/unistd.h __SYSCALL(__NR_timerfd, sys_timerfd) #define __NR_eventfd 284 __SYSCALL(__NR_eventfd, sys_eventfd) -+#define __NR_fallocate 284 ++#define __NR_fallocate 285 +__SYSCALL(__NR_fallocate, sys_fallocate) #ifndef __NO_STUBS
ext4-nanosecond-patch +1 -1
@@ -3,7 +3,7 @@ From: Kalpak Shah <[email protected]> This patch is a spinoff of the old nanosecond patches. It includes some cleanups and addition of a creation timestamp. The -EXT3_FEATURE_RO_COMPAT_EXTRA_ISIZE flag has also been added along with +EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE flag has also been added along with s_{min, want}_extra_isize fields in struct ext3_super_block. Signed-off-by: Andreas Dilger <[email protected]>
(quoted diff) +0 -0
b/ext4_remove_subdirs_limit.patch
index effd545..83f4d5a 100644
ext4_remove_subdirs_limit.patch +1 -1
@@ -1,4 +1,4 @@ -From: [email protected] Thu May 17 17:21:08 2007 +From: Kalpak Shah <[email protected]> Hi,
Quoted 2 lines
So we're just waiting for Amit to make the minor on-disk format change Andreas suggested before we push to Linus.
Yep.
Thanks,
Mingming
Quoted 2 lines · Theodore Ts'o
So we're just waiting for Amit to make the minor on-disk format change Andreas suggested before we push to Linus.
I have commited following changes to the ext4 patch queue:
1. Updated ext4-fallocate-1-syscall_i386_amd64_ppc to add compat wrapper for x86_64/ia32. This addresses Heiko's concern that we did not have a wrapper for ia32.
2. Added a new patch ext4-fallocate-8-new-ondisk-format and updated the series file. This patch, as suggested by Andreas, will allow an initialized extent to be of max 2^15 length. Main purpose of this change is to have a better extent-to-group alignment.
For uninitialized extents the max length remains same - i.e. 2^15 - 1.
Thanks!
--
Regards,
Amit Arora
Quoted 9 lines · Amit K. Arora
Quoted 2 lines · Theodore Ts'o
So we're just waiting for Amit to make the minor on-disk format change Andreas suggested before we push to Linus.
2. Added a new patch ext4-fallocate-8-new-ondisk-format and updated the series file. This patch, as suggested by Andreas, will allow an initialized extent to be of max 2^15 length. Main purpose of this change is to have a better extent-to-group alignment.
For uninitialized extents the max length remains same - i.e. 2^15 - 1.
One tiny change I'd ask for in this patch (it isn't critical to get in before the upstream submission as it is only code style) is instead of using (EXT_MAX_LEN - 1) for uninitialized extents, instead use a separate #define EXT_UNINIT_MAX_LEN (EXT_MAX_LEN - 1) and use that in the code. While a minor change, this localizes the knowledge of the maximum length of uninitialized extents into just one place - right after the maximum length of initialized extents.
It might even make sense to change the other #define to be called EXT_INIT_MAX_LEN so people have to think about this when using the #define.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
Quoted 19 lines · Andreas Dilger
Quoted 9 lines · Amit K. Arora
Quoted 2 lines · Theodore Ts'o
So we're just waiting for Amit to make the minor on-disk format change Andreas suggested before we push to Linus.
2. Added a new patch ext4-fallocate-8-new-ondisk-format and updated the series file. This patch, as suggested by Andreas, will allow an initialized extent to be of max 2^15 length. Main purpose of this change is to have a better extent-to-group alignment.
For uninitialized extents the max length remains same - i.e. 2^15 - 1.One tiny change I'd ask for in this patch (it isn't critical to get in before the upstream submission as it is only code style) is instead of using (
EXT_MAX_LEN- 1) for uninitialized extents, instead use a separate #defineEXT_UNINIT_MAX_LEN(EXT_MAX_LEN- 1) and use that in the code. While a minor change, this localizes the knowledge of the maximum length of uninitialized extents into just one place - right after the maximum length of initialized extents.
Quoted 2 lines
It might even make sense to change the other #define to be called
EXT_INIT_MAX_LENso people have to think about this when using the #define.
Done. Changes are in ext4 patch queue.
Can you please have a quick look and see if this is what you preferred ?
--
Regards,
Amit Arora
Quoted 6 lines · Amit K. Arora
Quoted 2 lines · Andreas Dilger
It might even make sense to change the other #define to be called
EXT_INIT_MAX_LENso people have to think about this when using the #define.Done. Changes are in ext4 patch queue.
Can you please have a quick look and see if this is what you preferred ?
Yes, it looks good, though I wonder if it also makes sense to change the ext4_ext_*_uninitialized() code to use EXT_INIT_MAX_LEN instead of 0x8000, since that makes it a bit clearer that the two are related.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.