[merged mm-nonmm-stable] fat-release-buffer-head-after-rebuilding-parent.patch removed from -mm tree

Andrew Morton <[email protected]> Mon, 03 Aug 2026 21:05:39 -0700
Newsgroups org.kernel.vger.mm-commits
Message-ID <[email protected]>
The quilt patch titled
     Subject: fat: release buffer head after rebuilding parent
has been removed from the -mm tree.  Its filename was
     fat-release-buffer-head-after-rebuilding-parent.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Yichong Chen <[email protected]>
Subject: fat: release buffer head after rebuilding parent
Date: Wed, 15 Jul 2026 10:09:57 +0800

fat_scan_logstart() leaves the matching directory entry's buffer head in
sinfo.bh for the caller to release, just like fat_scan().

fat_rebuild_parent() uses the directory entry to rebuild the parent inode
for the nostale_ro NFS export path, but does not release sinfo.bh after a
successful scan.  Release it once fat_build_inode() has consumed the
directory entry data.

Link: https://lore.kernel.org/[email protected]
Fixes: f1e6fb0ab451 ("fat (exportfs): rebuild directory-inode if fat_dget()")
Signed-off-by: Yichong Chen <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Amit Sahrawat <[email protected]>
Cc: chenyichong <[email protected]>
Cc: Namjae Jeon <[email protected]>
Cc: Ravishankar N <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

 fs/fat/nfs.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/fs/fat/nfs.c~fat-release-buffer-head-after-rebuilding-parent
+++ a/fs/fat/nfs.c
@@ -250,8 +250,10 @@ struct inode *fat_rebuild_parent(struct
 		MSDOS_I(dummy_grand_parent)->i_pos = -1;
 	}
 
-	if (!fat_scan_logstart(dummy_grand_parent, clus_to_match, &sinfo))
+	if (!fat_scan_logstart(dummy_grand_parent, clus_to_match, &sinfo)) {
 		parent = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
+		brelse(sinfo.bh);
+	}
 
 	brelse(parent_bh);
 	iput(dummy_grand_parent);
_

Patches currently in -mm which might be from [email protected] are

hugetlbfs-release-subpool-on-fill_super-failure.patch
hugetlb-make-hugepage_put_subpool-tolerate-null.patch
hugetlb-evaluate-subpool-free-state-while-locked.patch