]> 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)
commitc8300b492a2fccb560e71c971c3aac09223400b2
tree67bd13d96325679bde7244d69cce501840b63796
parentc7ecc20b38433537b5a41eec584da1310ff5837e
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