]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove move_pages()
authorZach Brown <zab@redhat.com>
Wed, 16 Oct 2013 19:10:33 +0000 (12:10 -0700)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:03:09 +0000 (22:03 -0500)
commit6931a3d11a2c876abd3bd17fbc0310433421967a
treeb928d5a17bacd6644631d200e3a82232202b2aec
parentdea795f72eeb8dfa24d98896adfb0967d4243845
btrfs: remove move_pages()

move_pages() has an inefficient backwards byte copy of regions of two
different pages.  They're different pages so the regions won't overlap
and it could use memcpy().

At that point, though, move_pages() would be a slightly dimmer
re-implementation of copy_pages() that lacked the test for overlapping
page regions.

So remove move_pages() and just call copy_pages().

Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent_io.c