]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove unnecessary lock in may_commit_transaction()
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Mar 2014 05:54:59 +0000 (13:54 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:25 +0000 (15:17 -0400)
commitc0bc5bf6b22bf9363ef6cacc195f86d5b6bcb815
treec2b23a67f9f423969676d4f5ec8fc5836d48d2ea
parentc65ebfcd8ed62ad1657381e72562ffca7db25265
Btrfs: remove unnecessary lock in may_commit_transaction()

The reason is:
- The per-cpu counter has its own lock to protect itself.
- Here we needn't get a exact value.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/extent-tree.c