From 7642d7cddab1dc7774624652f91b67a0e122992d Mon Sep 17 00:00:00 2001 From: fuletian Date: Wed, 14 May 2025 11:28:36 +0800 Subject: [PATCH 1/2] add_debug_type Signed-off-by: fuletian --- fs/hmdfs/authority/config.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fs/hmdfs/authority/config.c b/fs/hmdfs/authority/config.c index 1610ca90272e..bd80f859b170 100644 --- a/fs/hmdfs/authority/config.c +++ b/fs/hmdfs/authority/config.c @@ -267,9 +267,11 @@ static struct configfs_attribute hmdfs_##_attr_##_attr = { \ }; HMDFS_BUNDLE_ATTRIBUTE(appid) +HMDFS_BUNDLE_ATTRIBUTE(debug_type) static struct configfs_attribute *hmdfs_battrs[] = { &hmdfs_appid_attr, + &hmdfs_debug_type_attr, NULL, }; @@ -282,6 +284,8 @@ static void hmdfs_config_bitem_release(struct config_item *item) bitem = container_of(item, struct hmdfs_config_bitem, item); remove_appid_hash_entry(&bitem->str); remove_appid_hash_entry(&bitem->str); + remove_debug_type_hash_entry(&bitem->str); + remove_debug_type_hash_entry(&bitem->str); free_bitem(bitem); } @@ -339,6 +343,11 @@ int get_bid(const char *bname) return hmdfs_appid_get(bname); } +int get_debug_type(const char *bname) +{ + return hmdfs_debug_type_get(bname); +} + int __init hmdfs_init_configfs(void) { int err; @@ -372,6 +381,7 @@ void hmdfs_exit_configfs(void) configfs_unregister_subsystem(&hmdfs_subsystem); clear_appid_hash_entry(); + clear_debug_type_hash_entry(); kmem_cache_destroy(hmdfs_bid_entry_cachep); } \ No newline at end of file -- Gitee From c66275426869d1a46d877dc77ef8bc4d0128b6bf Mon Sep 17 00:00:00 2001 From: fuletian Date: Wed, 14 May 2025 17:35:57 +0800 Subject: [PATCH 2/2] add_debug_type Signed-off-by: fuletian --- fs/hmdfs/authority/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hmdfs/authority/config.c b/fs/hmdfs/authority/config.c index bd80f859b170..ab26750a85eb 100644 --- a/fs/hmdfs/authority/config.c +++ b/fs/hmdfs/authority/config.c @@ -2,7 +2,7 @@ /* * fs/hmdfs/comm/authority/config.c * - * Copyright (c) 2020-2021 Huawei Device Co., Ltd. + * Copyright (c) 2020-2025 Huawei Device Co., Ltd. */ #include -- Gitee