Skip to content

Commit

Permalink
Btrfs: fix reada debug code compilation
Browse files Browse the repository at this point in the history
This fixes the following errors:

  fs/btrfs/reada.c: In function ‘btrfs_reada_wait’:
  fs/btrfs/reada.c:958:42: error: invalid operands to binary < (have ‘atomic_t’ and ‘int’)
  fs/btrfs/reada.c:961:41: error: invalid operands to binary < (have ‘atomic_t’ and ‘int’)

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: linux-btrfs@vger.kernel.org
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
  • Loading branch information
vstehle authored and Josef Bacik committed May 6, 2013
1 parent fd279fa commit 3c59ccd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/btrfs/reada.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,10 +955,11 @@ int btrfs_reada_wait(void *handle)
while (atomic_read(&rc->elems)) {
wait_event_timeout(rc->wait, atomic_read(&rc->elems) == 0,
5 * HZ);
dump_devs(rc->root->fs_info, rc->elems < 10 ? 1 : 0);
dump_devs(rc->root->fs_info,
atomic_read(&rc->elems) < 10 ? 1 : 0);
}

dump_devs(rc->root->fs_info, rc->elems < 10 ? 1 : 0);
dump_devs(rc->root->fs_info, atomic_read(&rc->elems) < 10 ? 1 : 0);

kref_put(&rc->refcnt, reada_control_release);

Expand Down

0 comments on commit 3c59ccd

Please sign in to comment.