]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: only write one super copy during fsync
authorChris Mason <chris.mason@oracle.com>
Tue, 13 Oct 2009 16:55:09 +0000 (12:55 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 13 Oct 2009 17:35:11 +0000 (13:35 -0400)
commitd4d72b02acea7aa1509d2a76a7491a749f3c548c
tree83c483a3f55d3f024863e1e33c3ac123e688c868
parentdf4c9ce1f3e9c73f06ee5b2f67bc32fe5ebfbe49
Btrfs: only write one super copy during fsync

During a tree-log commit for fsync, we've been writing at least
two copies of the super block and forcing them to disk.

The other filesystems write only one, and this change brings us on
par with them.  A full transaction commit will write all the super
copies, so we still have redundant info written on a regular
basis.

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