erofs: refine managed cache operations to folios
[linux-2.6-microblaze.git] / fs / erofs / compress.h
index 7cc5841..333587b 100644 (file)
@@ -81,13 +81,6 @@ static inline bool z_erofs_put_shortlivedpage(struct page **pagepool,
        return true;
 }
 
-#define MNGD_MAPPING(sbi)      ((sbi)->managed_cache->i_mapping)
-static inline bool erofs_page_is_managed(const struct erofs_sb_info *sbi,
-                                        struct page *page)
-{
-       return page->mapping == MNGD_MAPPING(sbi);
-}
-
 int z_erofs_fixup_insize(struct z_erofs_decompress_req *rq, const char *padbuf,
                         unsigned int padbufsize);
 extern const struct z_erofs_decompressor erofs_decompressors[];