]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore: drop unnecessary _xattr_clear()
authorYingxin Cheng <yingxin.cheng@intel.com>
Wed, 11 Dec 2024 01:40:09 +0000 (09:40 +0800)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 28 Feb 2025 14:43:18 +0000 (14:43 +0000)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/seastore.h

index 1616e02cdad8fdfa07c74cbcf09bd425ca605a5e..42c44f6087152ebbb171aeeee0b3eef5040a511a 100644 (file)
@@ -2575,18 +2575,10 @@ SeaStore::Shard::_rmattrs(
   internal_context_t &ctx,
   OnodeRef &onode)
 {
+  LOG_PREFIX(SeaStoreS::_rmattrs);
+  DEBUGT("onode={}", *ctx.transaction, *onode);
   onode->clear_object_info(*ctx.transaction);
   onode->clear_snapset(*ctx.transaction);
-  return _xattr_clear(ctx, onode);
-}
-
-SeaStore::Shard::tm_ret
-SeaStore::Shard::_xattr_clear(
-  internal_context_t &ctx,
-  OnodeRef &onode)
-{
-  LOG_PREFIX(SeaStoreS::_xattr_clear);
-  DEBUGT("onode={}", *ctx.transaction, *onode);
   auto root = onode->get_layout().xattr_root.get(
     onode->get_metadata_hint(device->get_block_size()));
   if (root.is_null()) {
index f5e010de8dec9f9757f9536d6cebd5fdbfd970cf..75a7bf7ff75d38533e5692c54c69abdee5cc93ff 100644 (file)
@@ -487,9 +487,6 @@ public:
       internal_context_t &ctx,
       OnodeRef &onode,
       std::string &&name);
-    tm_ret _xattr_clear(
-      internal_context_t &ctx,
-      OnodeRef &onode);
     tm_ret _create_collection(
       internal_context_t &ctx,
       const coll_t& cid, int bits);