aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorVincent <vincent.stehle@laposte.net>2013-04-16 04:15:25 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:54:55 -0400
commit3c59ccd32abb8f636b1573533d3e77972e80a9c9 (patch)
treeab3e05311c700f331d4527a0bd07db2b8fab7c0c /fs
parentfd279faefaa0a166733fcaff24699de7a8ea50b3 (diff)
Btrfs: fix reada debug code compilation
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/reada.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c
index 96b93daa0bbb..1031b69252c5 100644
--- a/fs/btrfs/reada.c
+++ b/fs/btrfs/reada.c
@@ -955,10 +955,11 @@ int btrfs_reada_wait(void *handle)
955 while (atomic_read(&rc->elems)) { 955 while (atomic_read(&rc->elems)) {
956 wait_event_timeout(rc->wait, atomic_read(&rc->elems) == 0, 956 wait_event_timeout(rc->wait, atomic_read(&rc->elems) == 0,
957 5 * HZ); 957 5 * HZ);
958 dump_devs(rc->root->fs_info, rc->elems < 10 ? 1 : 0); 958 dump_devs(rc->root->fs_info,
959 atomic_read(&rc->elems) < 10 ? 1 : 0);
959 } 960 }
960 961
961 dump_devs(rc->root->fs_info, rc->elems < 10 ? 1 : 0); 962 dump_devs(rc->root->fs_info, atomic_read(&rc->elems) < 10 ? 1 : 0);
962 963
963 kref_put(&rc->refcnt, reada_control_release); 964 kref_put(&rc->refcnt, reada_control_release);
964 965