]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't bother copying if we're only logging the inode
authorJosef Bacik <jbacik@fusionio.com>
Thu, 11 Oct 2012 20:17:34 +0000 (16:17 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:22 +0000 (20:46 -0500)
commita5045db451a2ae333f6d9a82e9e37571f9a0a8d6
tree85489b441816bb50fb05f21057dd6e7a4374482b
parentc8300b492a2fccb560e71c971c3aac09223400b2
Btrfs: don't bother copying if we're only logging the inode

We don't copy inode items anwyay, we just copy them straight into the log
from the in memory inode.  So if we know we're only logging the inode, don't
bother dropping anything, just try to insert it and either if it succeeds or
we get EEXIST we can update the inode item in the log and carry on.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c