Skip to content

Commit

Permalink
Btrfs: fix a misplaced address operator in a condition
Browse files Browse the repository at this point in the history
This should obviously not be "if (&flag)" but "if (flag)".

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
  • Loading branch information
Stefan Behrens authored and Chris Mason committed Aug 28, 2012
1 parent b24baf6 commit aa2ffd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void btrfs_clear_lock_blocking_rw(struct extent_buffer *eb, int rw)
{
if (eb->lock_nested) {
read_lock(&eb->lock);
if (&eb->lock_nested && current->pid == eb->lock_owner) {
if (eb->lock_nested && current->pid == eb->lock_owner) {
read_unlock(&eb->lock);
return;
}
Expand Down

0 comments on commit aa2ffd0

Please sign in to comment.