/* Release the attribute search context @ctx, unmapping an associated extent mft record if present.  */
void ntfs_attr_put_search_ctx(ntfs_attr_search_ctx *ctx)
/* Release the attribute search context @ctx, unmapping an associated extent mft record if present.  */
void ntfs_attr_put_search_ctx(ntfs_attr_search_ctx *ctx)
{
	if (ctx->base_ntfs_ino && ctx->ntfs_ino != ctx->base_ntfs_ino)
		unmap_extent_mft_record(ctx->ntfs_ino);
	kmem_cache_free(ntfs_attr_ctx_cache, ctx);
	return;
}