mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
udf: Use folios in udf_adinicb_writepage()
Make udf_adinicb_writepage() fully converted to using the passed folio instead of converting it to the page. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
62aeb94433
commit
96acbef66b
@ -188,14 +188,14 @@ static void udf_write_failed(struct address_space *mapping, loff_t to)
|
||||
static int udf_adinicb_writepage(struct folio *folio,
|
||||
struct writeback_control *wbc, void *data)
|
||||
{
|
||||
struct page *page = &folio->page;
|
||||
struct inode *inode = page->mapping->host;
|
||||
struct inode *inode = folio->mapping->host;
|
||||
struct udf_inode_info *iinfo = UDF_I(inode);
|
||||
|
||||
BUG_ON(!PageLocked(page));
|
||||
memcpy_from_page(iinfo->i_data + iinfo->i_lenEAttr, page, 0,
|
||||
BUG_ON(!folio_test_locked(folio));
|
||||
BUG_ON(folio->index != 0);
|
||||
memcpy_from_file_folio(iinfo->i_data + iinfo->i_lenEAttr, folio, 0,
|
||||
i_size_read(inode));
|
||||
unlock_page(page);
|
||||
folio_unlock(folio);
|
||||
mark_inode_dirty(inode);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user