Patch "nilfs2: convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nilfs2: convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nilfs2-convert-nilfs_lookup_dirty_data_buffers-to-us.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 70c180c9d4531ade7ce5bb47e28975779d660a9f
Author: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
Date:   Mon Oct 16 21:11:03 2023 +0100

    nilfs2: convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers
    
    [ Upstream commit 922b12eff0b293fc13ae4045c7d7264e18938878 ]
    
    This function was already using a folio, so this update to the new API
    removes a single folio->page->folio conversion.
    
    Link: https://lkml.kernel.org/r/20231016201114.1928083-17-willy@xxxxxxxxxxxxx
    Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
    Acked-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxx>
    Cc: Andreas Gruenbacher <agruenba@xxxxxxxxxx>
    Cc: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 367a9bffabe0 ("nilfs2: protect access to buffers with no active references")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index 0610cb12c11ca..57b535921a73b 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -731,10 +731,9 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,
 			continue;
 		}
 		head = folio_buffers(folio);
-		if (!head) {
-			create_empty_buffers(&folio->page, i_blocksize(inode), 0);
-			head = folio_buffers(folio);
-		}
+		if (!head)
+			head = folio_create_empty_buffers(folio,
+					i_blocksize(inode), 0);
 		folio_unlock(folio);
 
 		bh = head;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux