diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-02-14 23:01:36 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-02-14 23:01:36 -0500 |
commit | 3d0518f4758eca4339e75e5b9dbb7e06a5ce08b4 (patch) | |
tree | 30a45a1c82d830646a69591c470680573e14de07 /arch/blackfin/mach-bf537/boards | |
parent | 8bad4597c2d71365adfa846ea1ca6cf99161a455 (diff) |
ext4: New rec_len encoding for very large blocksizes
The rec_len field in the directory entry is 16 bits, so to encode
blocksizes larger than 64k becomes problematic. This patch allows us
to supprot block sizes up to 256k, by using the low 2 bits to extend
the range of rec_len to 2**18-1 (since valid rec_len sizes must be a
multiple of 4). We use the convention that a rec_len of 0 or 65535
means the filesystem block size, for compatibility with older kernels.
It's unlikely we'll see VM pages of up to 256k, but at some point we
might find that the Linux VM has been enhanced to support filesystem
block sizes > than the VM page size, at which point it might be useful
for some applications to allow very large filesystem block sizes.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards')
0 files changed, 0 insertions, 0 deletions