From f5030304cec1f244d485abaf81da1105d7687a1d Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Thu, 9 Dec 2021 09:34:12 -0600 Subject: [PATCH] EX-4306 lipe: allow any SoM to count as size In lipe/policy.c:get_size(), allow any SoM attribute to be used as the size since that is what existing users (Insight) expect. Test-Parameters: trivial testlist=sanity-lipe Signed-off-by: John L. Hammond Change-Id: I7f7be38f100840a327d8dc6f506ad73f2233a7b4 Reviewed-on: https://review.whamcloud.com/45809 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/46129 --- lipe/src/policy.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lipe/src/policy.c b/lipe/src/policy.c index debfa85..da7d023 100644 --- a/lipe/src/policy.c +++ b/lipe/src/policy.c @@ -983,9 +983,6 @@ static int get_size(struct lipe_object *object, assert(attrs->loa_attr_bits & LIPE_OBJECT_ATTR_SOM); - if (som->lsa_valid != SOM_FL_STRICT) - return 0; - attrs->loa_size = som->lsa_size; attrs->loa_blocks = som->lsa_blocks * 512; attrs->loa_attr_bits |= LIPE_OBJECT_ATTR_SIZE; -- 1.8.3.1