]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: optimize split page write in btrfs_set_##bits
authorDavid Sterba <dsterba@suse.com>
Thu, 30 Apr 2020 15:57:55 +0000 (17:57 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 May 2020 09:25:34 +0000 (11:25 +0200)
commit50122160104f6fe94c2d759962d25d8bce914be7
tree6b46d01bde3761b1c903f95b1af9b49a2c95ac9b
parent875adf2b828d4297374ad7a1d47b230b27889f51
btrfs: optimize split page write in btrfs_set_##bits

The helper write_extent_buffer is called to do write of the data
spanning two extent buffer pages. As the size is known, we can do the
write directly in two steps.  This removes one function call and
compiler can optimize memcpy as the sizes are known at compile time.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/struct-funcs.c