mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
f2fs: Use a folio in f2fs_compress_write_end()
This removes an access of page->index. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
a909c17953
commit
ff6c82a934
|
|
@ -1197,7 +1197,8 @@ bool f2fs_compress_write_end(struct inode *inode, void *fsdata,
|
|||
.cluster_size = F2FS_I(inode)->i_cluster_size,
|
||||
.rpages = fsdata,
|
||||
};
|
||||
bool first_index = (index == cc.rpages[0]->index);
|
||||
struct folio *folio = page_folio(cc.rpages[0]);
|
||||
bool first_index = (index == folio->index);
|
||||
|
||||
if (copied)
|
||||
set_cluster_dirty(&cc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user