]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: tree mod log sanity checks in join_transaction
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Sun, 20 May 2012 13:43:53 +0000 (15:43 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 30 May 2012 13:17:36 +0000 (15:17 +0200)
commita1f41992651da44fb5a5ca28bfcd2f5ce612b33d
tree45e1d42c376b168ae55460e2d481f915d6cc8b78
parent09bed0fd82745bac0894e4cfc45d6ba567fa714f
Btrfs: tree mod log sanity checks in join_transaction

When a fresh transaction begins, the tree mod log must be clean. Users of
the tree modification log must ensure they never span across transaction
boundaries.

We reset the sequence to 0 in this safe situation to make absolutely sure
overflow can't happen.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/transaction.c