diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2023-10-16 21:11:03 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-10-25 16:47:09 -0700 |
commit | 922b12eff0b293fc13ae4045c7d7264e18938878 (patch) | |
tree | 6bb2fc6800f272e55418ba888baa06e6af557909 | |
parent | 73c32e07a3977f8470b29889d30d2f808e6fee4a (diff) |
nilfs2: convert nilfs_lookup_dirty_data_buffers to use folio_create_empty_buffers
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/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Acked-by: Ryusuke Konishi <[email protected]>
Cc: Andreas Gruenbacher <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | fs/nilfs2/segment.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c index 7ec16879756e..94388fe83cf8 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; |