]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: only log the inode item if we can get away with it
authorJosef Bacik <jbacik@fusionio.com>
Thu, 11 Oct 2012 19:53:56 +0000 (15:53 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:21 +0000 (20:46 -0500)
commit6df9a0bcebc9ecca3eba7437b3c428d6db1c0baf
tree67bd13d96325679bde7244d69cce501840b63796
parent3fbb1ad2d93262bb003b1b5214927dd040deeca2
Btrfs: only log the inode item if we can get away with it

Currently we copy all the file information into the log, inode item, the
refs, xattrs etc.  Except most of this doesn't change from fsync to fsync,
just the inode item changes.  So set a flag if an xattr changes or a link is
added, and otherwise only log the inode item.  Thanks,

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