From: Liang Zhen Date: Tue, 28 Jun 2011 04:17:35 +0000 (+0800) Subject: LU-470 remove 24-bits mask for logic block number of IAM dir X-Git-Tag: 2.0.66.0~13 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b79078ebbdcf210225893b4ffb45f2b8e9e51b75;ds=sidebyside LU-470 remove 24-bits mask for logic block number of IAM dir dx_get_block() will mask logic block number to 24-bits, which means we can only have 16-M blocks and a few giga FIDs, this is not enough because we have one single IAM container to save all (fids, ino) for MDT Change-Id: I188efc65ed68caf12149f03c431481cd603effc1 Signed-off-by: Liang Zhen Reviewed-on: http://review.whamcloud.com/1024 Tested-by: Hudson Reviewed-by: Andreas Dilger Reviewed-by: Alex Zhuravlev --- diff --git a/lustre/osd-ldiskfs/osd_iam.h b/lustre/osd-ldiskfs/osd_iam.h index 68aed7b..e6c550c 100644 --- a/lustre/osd-ldiskfs/osd_iam.h +++ b/lustre/osd-ldiskfs/osd_iam.h @@ -781,7 +781,7 @@ static inline unsigned dx_get_block(struct iam_path *p, struct iam_entry *entry) u32 *addr; addr = iam_entry_off(entry, iam_path_descr(p)->id_ikey_size); - return le32_to_cpu(get_unaligned(addr)) & 0x00ffffff; + return le32_to_cpu(get_unaligned(addr)); } static inline void dx_set_block(struct iam_path *p,