Re: [PATCH v4 04/12] ntfs: remove remaining attribute lists on creation failure

From: Namjae Jeon

Date: Sun Nov 22 2026 - 05:48:40 EST


On Sun, Nov 15, 2026 at 10:26 PM Baolin Liu <liubaolin12138@xxxxxxx> wrote:
>
> From: Xuewen Wang <wangxuewen@xxxxxxxxxx>
>
> Creation rollback can leave an ATTRIBUTE_LIST inode cached after freeing
> the base and extent MFT records. MFT reuse can find that stale inode;
> dropping it under another inode's record lock can trigger a lockdep
> warning.
>
> Remove any remaining ATTRIBUTE_LIST before freeing extent records to
> release its storage and invalidate the cached inode. Drop the returned
> reference after releasing the record locks.
>
> Fixes: af0db57d4293 ("ntfs: update inode operations")
> Reviewed-by: Baolin Liu <liubaolin@xxxxxxxxxx>
> Signed-off-by: Xuewen Wang <wangxuewen@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks.