]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: map the inode item when doing fill_inode_item
authorJosef Bacik <josef@redhat.com>
Tue, 5 Apr 2011 17:02:27 +0000 (13:02 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 8 Apr 2011 17:00:34 +0000 (13:00 -0400)
commitc2636f13ec9930043d71156df33615f77d6eb7db
treecffdb38f2f479dde85d5f96879e53ac4b8f4d6ef
parentc1546020ee8ed830eb26c62089ab67ed255abafd
Btrfs: map the inode item when doing fill_inode_item

Instead of calling kmap_atomic for every thing we set in the inode item, map the
entire inode item at the start and unmap it at the end.  This makes a sequential
dd of 400mb O_DIRECT something like 1% faster.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/inode.c