UPSTREAM: f2fs: Use a folio in f2fs_compress_write_end()
This removes an access of page->index. Change-Id: I91a718bff9d7159f687cd263026ced9f6a1cd931 Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit ff6c82a934f7b5df8702579d921209c5ca336102)
This commit is contained in:
committed by
Jaegeuk Kim
parent
42766772df
commit
48f4143cb9
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user