mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
buffer: convert page_zero_new_buffers() to folio_zero_new_buffers()
Most of the callers already have a folio; convert reiserfs_write_end() to have a folio. Removes a couple of hidden calls to compound_head(). Link: https://lkml.kernel.org/r/20230612210141.730128-10-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Andreas Gruenbacher <agruenba@redhat.com> Cc: Bob Peterson <rpeterso@redhat.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
8c6cb3e3d5
commit
4a9622f2fd
@@ -1093,7 +1093,7 @@ static int ext4_block_write_begin(struct folio *folio, loff_t pos, unsigned len,
|
||||
err = -EIO;
|
||||
}
|
||||
if (unlikely(err)) {
|
||||
page_zero_new_buffers(&folio->page, from, to);
|
||||
folio_zero_new_buffers(folio, from, to);
|
||||
} else if (fscrypt_inode_uses_fs_layer_crypto(inode)) {
|
||||
for (i = 0; i < nr_wait; i++) {
|
||||
int err2;
|
||||
@@ -1339,7 +1339,7 @@ static int ext4_write_end(struct file *file,
|
||||
}
|
||||
|
||||
/*
|
||||
* This is a private version of page_zero_new_buffers() which doesn't
|
||||
* This is a private version of folio_zero_new_buffers() which doesn't
|
||||
* set the buffer to be dirty, since in data=journalled mode we need
|
||||
* to call ext4_dirty_journalled_data() instead.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user