]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: check for an extent_op on the locked ref
authorJosef Bacik <jbacik@fb.com>
Thu, 27 Mar 2014 23:41:34 +0000 (19:41 -0400)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 00:34:36 +0000 (17:34 -0700)
commitacc215f861b35ac1793a1d9e11f11d00b8893501
tree3712e14e91391f6a4d2b727e776d6879655067d3
parentf9dfb6f70da64b63d877508b020cf6d620fd016d
Btrfs: check for an extent_op on the locked ref

We could have possibly added an extent_op to the locked_ref while we dropped
locked_ref->lock, so check for this case as well and loop around.  Otherwise we
could lose flag updates which would lead to extent tree corruption.  Thanks,

cc: stable@vger.kernel.org
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c