mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage
Mostly direct substitution with occasional adjustment or removing outdated comments. Signed-off-by: Kirill A. Shutemov <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
09cbfeaf1a
commit
ea1754a084
65 changed files with 120 additions and 135 deletions
|
|
@ -30,7 +30,7 @@
|
|||
* access the metadata and fragment caches.
|
||||
*
|
||||
* To avoid out of memory and fragmentation issues with vmalloc the cache
|
||||
* uses sequences of kmalloced PAGE_CACHE_SIZE buffers.
|
||||
* uses sequences of kmalloced PAGE_SIZE buffers.
|
||||
*
|
||||
* It should be noted that the cache is not used for file datablocks, these
|
||||
* are decompressed and cached in the page-cache in the normal way. The
|
||||
|
|
@ -231,7 +231,7 @@ void squashfs_cache_delete(struct squashfs_cache *cache)
|
|||
/*
|
||||
* Initialise cache allocating the specified number of entries, each of
|
||||
* size block_size. To avoid vmalloc fragmentation issues each entry
|
||||
* is allocated as a sequence of kmalloced PAGE_CACHE_SIZE buffers.
|
||||
* is allocated as a sequence of kmalloced PAGE_SIZE buffers.
|
||||
*/
|
||||
struct squashfs_cache *squashfs_cache_init(char *name, int entries,
|
||||
int block_size)
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ void squashfs_copy_cache(struct page *page, struct squashfs_cache_entry *buffer,
|
|||
|
||||
/*
|
||||
* Loop copying datablock into pages. As the datablock likely covers
|
||||
* many PAGE_CACHE_SIZE pages (default block size is 128 KiB) explicitly
|
||||
* many PAGE_SIZE pages (default block size is 128 KiB) explicitly
|
||||
* grab the pages from the page cache, except for the page that we've
|
||||
* been called to fill.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue