From b79078ebbdcf210225893b4ffb45f2b8e9e51b75 Mon Sep 17 00:00:00 2001 From: Liang Zhen Date: Tue, 28 Jun 2011 12:17:35 +0800 Subject: [PATCH] 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 --- lustre/osd-ldiskfs/osd_iam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 1.8.3.1