/* * Copyright (c) 2013 * Phillip Lougher * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. */ #include #include #include #include #include #include #include #include "squashfs_fs.h" #include "squashfs_fs_sb.h" #include "squashfs_fs_i.h" #include "squashfs.h" /* Read separately compressed datablock and memcopy into page cache */ int squashfs_readpage_block(struct page *page, u64 block, int bsize) { struct inode *i = page->mapping->host; struct squashfs_cache_entry *buffer = squashfs_get_datablock(i->i_sb, block, bsize); int res = buffer->error; if (res) ERROR("Unable to read page, block %llx, size %x\n", block, bsize); else squashfs_copy_cache(page, buffer, buffer->length, 0); squashfs_cache_put(buffer); return res; } hange='this.form.submit();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Wool <vitalywool@gmail.com>2016-06-03 14:55:47 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-06-03 16:02:55 -0700
commit43afc19417ca92cf237095947f597f21d86fd2a7 (patch)
treea9976414d5dab53237a8b283aa5030b16a44adcb
parent3a06bb78ceeceacc86a1e31133a7944013f9775b (diff)
mm/z3fold.c: avoid modifying HEADLESS page and minor cleanup
Fix erroneous z3fold header access in a HEADLESS page in reclaim function, and change one remaining direct handle-to-buddy conversion to use the appropriate helper. Link: http://lkml.kernel.org/r/5748706F.9020208@gmail.com Signed-off-by: Vitaly Wool <vitalywool@gmail.com> Reviewed-by: Dan Streetman <ddstreet@ieee.org> Cc: Seth Jennings <sjenning@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>