]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/staging/erofs/unzip_vle.h
staging: erofs: move stagingpage operations to compress.h
[linux.git] / drivers / staging / erofs / unzip_vle.h
index 9c53009700cff60baeb22b106b9892e7d6a4da76..6c3e0deb63e7ad318df8715382871b30bd50e6cf 100644 (file)
 #include "internal.h"
 #include "unzip_pagevec.h"
 
-/*
- *  - 0x5A110C8D ('sallocated', Z_EROFS_MAPPING_STAGING) -
- * used for temporary allocated pages (via erofs_allocpage),
- * in order to seperate those from NULL mapping (eg. truncated pages)
- */
-#define Z_EROFS_MAPPING_STAGING                ((void *)0x5A110C8D)
-
-#define z_erofs_is_stagingpage(page)   \
-       ((page)->mapping == Z_EROFS_MAPPING_STAGING)
-
-static inline bool z_erofs_gather_if_stagingpage(struct list_head *page_pool,
-                                                struct page *page)
-{
-       if (z_erofs_is_stagingpage(page)) {
-               list_add(&page->lru, page_pool);
-               return true;
-       }
-       return false;
-}
-
 /*
  * Structure fields follow one of the following exclusion rules.
  *