/* * 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; } id' value='54a07c7bb0da0343734c78212bbe9f3735394962'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-01-26 06:44:03 +1000
committerDave Airlie <airlied@redhat.com>2017-01-26 06:44:03 +1000
commit54a07c7bb0da0343734c78212bbe9f3735394962 (patch)
tree714efff4608ddc0dda7dc85ca82ae98e2c58b52c /tools/perf/tests/pmu.c
parent932790109f62aa52bdb4bb62aa66653c0b51bc75 (diff)
Revert "drm/probe-helpers: Drop locking from poll_enable"
This reverts commit 3846fd9b86001bea171943cc3bb9222cb6da6b42. There were some precursor commits missing for this around connector locking, we should probably merge Lyude's nouveau avoid the problem patch.
Diffstat (limited to 'tools/perf/tests/pmu.c')