We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c86d1e commit 1efc783Copy full SHA for 1efc783
fs/f2fs/compress.c
@@ -90,11 +90,13 @@ bool f2fs_is_compressed_page(struct page *page)
90
static void f2fs_set_compressed_page(struct page *page,
91
struct inode *inode, pgoff_t index, void *data)
92
{
93
- attach_page_private(page, (void *)data);
+ struct folio *folio = page_folio(page);
94
+
95
+ folio_attach_private(folio, (void *)data);
96
97
/* i_crypto_info and iv index */
- page->index = index;
- page->mapping = inode->i_mapping;
98
+ folio->index = index;
99
+ folio->mapping = inode->i_mapping;
100
}
101
102
static void f2fs_drop_rpages(struct compress_ctx *cc, int len, bool unlock)
0 commit comments