VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Jan Kara <jack@suse.cz> 2021-06-28 19:35:04 -0700 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:06:53 +0200 commit: a800caba38542a25f716c9e9edd8a5cf68e0200c parent: 1e515576f826d2c1ffc34672c206adb2094aecbf
Commit Summary:
dax: fix ENOMEM handling in grab_mapping_entry()
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/dax.c b/fs/dax.c
index 62352cbcf0f4..da41f9363568 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -488,10 +488,11 @@ static void *grab_mapping_entry(struct xa_state *xas,
 		struct address_space *mapping, unsigned int order)
 {
 	unsigned long index = xas->xa_index;
-	bool pmd_downgrade = false; /* splitting PMD entry into PTE entries? */
+	bool pmd_downgrade;	/* splitting PMD entry into PTE entries? */
 	void *entry;
 
 retry:
+	pmd_downgrade = false;
 	xas_lock_irq(xas);
 	entry = get_unlocked_entry(xas, order);