fs_ops: fix deletion of tag directories

This commit is contained in:
CismonX 2025-06-02 08:41:33 +08:00
parent d5eae85774
commit 495f8592e6
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -1352,12 +1352,14 @@ intfs_delete (
) {
int status = -EPERM;
int64_t bm_parent_id = BOOKMARKS_ROOT_ID;
switch (parent_id) {
case INTFS_ID_TAGS:
flags |= BOOKMARKFS_BOOKMARK_TYPE(TAG);
bm_parent_id = TAGS_ROOT_ID;
// fallthrough
case INTFS_ID_BOOKMARKS:
status = bm_delete(BOOKMARKS_ROOT_ID, name, flags);
status = bm_delete(bm_parent_id, name, flags);
break;
case INTFS_ID_KEYWORDS: