Re: [PATCH v2 2/3] ntfs: avoid heap allocation for free-cluster readahead state

From: Namjae Jeon

Date: Thu May 21 2026 - 20:29:24 EST


> > * Convert the number of bits into bytes rounded up, then convert into
> > @@ -1985,7 +1981,7 @@ s64 get_nr_free_clusters(struct ntfs_volume *vol)
> > * Get folio from page cache, getting it from backing store
> > * if necessary, and increment the use count.
> > */
> > - folio = ntfs_get_locked_folio(mapping, index, max_index, ra);
> > + folio = ntfs_get_locked_folio(mapping, index, max_index, &ra);
>
> This line modifies the __get_nr_free_mft_records function, not the
> get_nr_free_clusters function.
> Therefore the patch needs to be rebased on ntfs-next branch at
> git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git.
We can change__get_nr_free_mft_records() in the same way as
get_nr_free_clusters().