From 735c4d1a8d64aff1c559403f0099406a4480faf9 Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Sat, 8 Mar 2025 17:08:56 -0500 Subject: [PATCH] LU-16518 llite: remove unused ll_default_lmv_inherited() This function stopped being used in a previous patch, but it was never removed. So let's remove it now. Fixes: 388a185eace0 ("LU-15971 llite: implicit default LMV inherit") Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: I7aef4ad1a08bf55abd6ec2cb906b4198dc3185f0 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58352 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin --- lustre/llite/llite_lib.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 4b2cc9b..a7d36e1 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -2910,30 +2910,6 @@ int ll_update_inode(struct inode *inode, struct lustre_md *md) return 0; } -/* child default LMV is inherited from parent */ -static inline bool ll_default_lmv_inherited(struct lmv_stripe_md *pdmv, - struct lmv_stripe_md *cdmv) -{ - if (!pdmv || !cdmv) - return false; - - if (pdmv->lsm_md_magic != cdmv->lsm_md_magic || - pdmv->lsm_md_stripe_count != cdmv->lsm_md_stripe_count || - pdmv->lsm_md_master_mdt_index != cdmv->lsm_md_master_mdt_index || - pdmv->lsm_md_hash_type != cdmv->lsm_md_hash_type) - return false; - - if (cdmv->lsm_md_max_inherit != - lmv_inherit_next(pdmv->lsm_md_max_inherit)) - return false; - - if (cdmv->lsm_md_max_inherit_rr != - lmv_inherit_rr_next(pdmv->lsm_md_max_inherit_rr)) - return false; - - return true; -} - /* if default LMV is implicitly inherited, subdir default LMV is maintained on * client side. */ -- 1.8.3.1