Whamcloud - gitweb
LU-16518 llite: remove unused ll_default_lmv_inherited() 52/58352/2
authorTimothy Day <timday@amazon.com>
Sat, 8 Mar 2025 22:08:56 +0000 (17:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:36:02 +0000 (23:36 +0000)
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 <timday@amazon.com>
Change-Id: I7aef4ad1a08bf55abd6ec2cb906b4198dc3185f0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58352
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c

index 4b2cc9b..a7d36e1 100644 (file)
@@ -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.
  */