summaryrefslogtreecommitdiff
path: root/fs/btrfs/locking.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-07-26 03:40:35 -0600
committerChris Mason <chris.mason@oracle.com>2012-08-28 16:53:23 -0400
commitaa2ffd06168e25689e0eb9662bf4595ba2bbac14 (patch)
tree32fe58c5f6d8ad4e691c2e9074d28646d793c394 /fs/btrfs/locking.c
parentb24baf6917a376420d535548e1f88744028bcf24 (diff)
downloadlinux-aa2ffd06168e25689e0eb9662bf4595ba2bbac14.tar.gz
Btrfs: fix a misplaced address operator in a condition
This should obviously not be "if (&flag)" but "if (flag)". Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'fs/btrfs/locking.c')
-rw-r--r--fs/btrfs/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c
index a44eff074805..2a1762c66041 100644
--- a/fs/btrfs/locking.c
+++ b/fs/btrfs/locking.c
@@ -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;
}