summaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorToshiyuki Okajima <toshi.okajima@jp.fujitsu.com>2009-06-08 12:41:35 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-08 12:41:35 -0400
commit9aee2286071c23c535fe9928eec1a26e0bcf256d (patch)
treee0518acaa75c1399ffcf67ca74a54d5a9488296b /fs/ext4/mballoc.c
parentf8514083cd61daef12fba5ef883ad9352c450428 (diff)
downloadop-kernel-dev-9aee2286071c23c535fe9928eec1a26e0bcf256d.zip
op-kernel-dev-9aee2286071c23c535fe9928eec1a26e0bcf256d.tar.gz
ext4: fix dx_map_entry to support 256k directory blocks
The dx_map_entry structure doesn't support over 64KB block size by current usage of its member("offs"). Because "offs" treats an offset of copies of the ext4_dir_entry_2 structure as is. This member size is 16 bits. But real offset for over 64KB(256KB) block size needs 18 bits. However, real offset keeps 4 byte boundary, so lower 2 bits is not used. Therefore, we do the following to fix this limitation: For "store": we divide the real offset by 4 and then store this result to "offs" member. For "use": we multiply "offs" member by 4 and then use this result as real offset. Signed-off-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud