diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-02-17 19:20:06 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-16 22:06:22 -0700 |
| commit | 63a23847dc47113b879a5f53cc0ca5cedc881ffd (patch) | |
| tree | daa120cedda514822ef0ec4ac6236d66acf4a28e /fs/ext4 | |
| parent | fcd807a03b864e2c7b2aa5eaade185127c4e2414 (diff) | |
| download | linux-63a23847dc47113b879a5f53cc0ca5cedc881ffd.tar.gz linux-63a23847dc47113b879a5f53cc0ca5cedc881ffd.tar.bz2 linux-63a23847dc47113b879a5f53cc0ca5cedc881ffd.zip | |
fs: convert block_commit_write() to take a folio
All callers now have a folio, so pass it in instead of converting
folio->page->folio.
Link: https://lkml.kernel.org/r/20250217192009.437916-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ext4')
| -rw-r--r-- | fs/ext4/inline.c | 2 | ||||
| -rw-r--r-- | fs/ext4/move_extent.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index 3536ca7e4fcc..0af474c8b260 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -637,7 +637,7 @@ retry: goto retry; if (folio) - block_commit_write(&folio->page, from, to); + block_commit_write(folio, from, to); out: if (folio) { folio_unlock(folio); diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 898443e98efc..48649be64d6a 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c @@ -399,7 +399,7 @@ data_copy: bh = bh->b_this_page; } - block_commit_write(&folio[0]->page, from, from + replaced_size); + block_commit_write(folio[0], from, from + replaced_size); /* Even in case of data=writeback it is reasonable to pin * inode to transaction, to prevent unexpected data loss */ |
