Re: [PATCH v4 04/31] ntfs: preserve attribute search context initialization errors
From: Hyunchul Lee
Date: Tue Oct 27 2026 - 01:47:08 EST
Hi,
> @@ -5476,7 +5480,7 @@ int ntfs_attr_exist(struct ntfs_inode *ni, const __le32 type, __le16 *name,
> ntfs_debug("Entering\n");
>
> ctx = ntfs_attr_get_search_ctx(ni, NULL);
> - if (!ctx) {
> + if (IS_ERR(ctx)) {
> ntfs_error(ni->vol->sb, "%s: Failed to get search context",
> __func__);
> return 0;
ntfs_attr_exist() still turns ntfs_attr_get_search_ctx() errors into
'attribute absent'.
> --
> 2.51.0
>
--
Thanks,
Hyunchul