summaryrefslogtreecommitdiffstats
path: root/drivers/video/i810
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2011-08-04 01:21:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-04 02:25:23 +0200
commit7a5d0fbb29936fad7f17b1cb001b0c33a5f13328 (patch)
tree903c66ee195451f45c782155a8eb6dd6e7217522 /drivers/video/i810
parenttmpfs: copy truncate_inode_pages_range (diff)
downloadlinux-7a5d0fbb29936fad7f17b1cb001b0c33a5f13328.tar.xz
linux-7a5d0fbb29936fad7f17b1cb001b0c33a5f13328.zip
tmpfs: convert shmem_truncate_range to radix-swap
Disable the toy swapping implementation in shmem_writepage() - it's hard to support two schemes at once - and convert shmem_truncate_range() to a lockless gang lookup of swap entries along with pages, freeing both. Since the second loop tightens its noose until all entries of either kind have been squeezed out (and we shall make sure that there's not an instant when neither is visible), there is no longer a need for yet another pass below. shmem_radix_tree_replace() compensates for the lockless lookup by checking that the expected entry is in place, under lock, before replacing it. Here it just deletes, but will be used in later patches to substitute swap entry for page or page for swap entry. Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/i810')
0 files changed, 0 insertions, 0 deletions