]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: hold trans_mutex when using btrfs_record_root_in_trans
authorYan Zheng <zheng.yan@oracle.com>
Thu, 12 Feb 2009 19:14:53 +0000 (14:14 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 12 Feb 2009 19:14:53 +0000 (14:14 -0500)
commit0eae0569ea08fc3347264f26956809cf48c2c3ed
treec0e8f5eda96cefeb44a48f05a248ea22b4259ad2
parent8de5b8468647b57e553eeff7139f967b4f8ad2e8
Btrfs: hold trans_mutex when using btrfs_record_root_in_trans

btrfs_record_root_in_trans needs the trans_mutex held to make sure two
callers don't race to setup the root in a given transaction.  This adds
it to all the places that were missing it.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c
fs/btrfs/tree-log.c