Re: [PATCH 2/2] preserve the next empty-entry hint after allocation
From: Namjae Jeon
Date: Fri Jun 12 2026 - 09:44:07 EST
> + ret = exfat_cache_next_empty_entry(sb, ei, &prev_hint_femp, dentry,
> + num_entries);
The empty-entry hint is only an optimization, so failure to advance
the hint should not make file creation fail with -EIO.
Could you make exfat_cache_next_empty_entry() return void and simply
skip caching the hint if exfat_chain_advance() fails?
> + if (ret) {
> + exfat_put_dentry_set(es, false);
> + return ret;
> + }
> +
> p_dir->dir = exfat_sector_to_cluster(sbi, es->bh[0]->b_blocknr);
> p_dir->size -= dentry / sbi->dentries_per_clu;
>
> --
> 2.34.1
>