diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-09-20 10:05:02 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-26 13:37:04 -0400 |
commit | ab8d0fc48dba09e0a2b8b0dbfe144d4de9eb874f (patch) | |
tree | e6ac2c4d2f3d81a0d7b3b398db3fb48f2ed1630c /fs/btrfs/reada.c | |
parent | 62e855771dacf7c4d6daf9741642a965e7066d31 (diff) |
btrfs: convert pr_* to btrfs_* where possible
For many printks, we want to know which file system issued the message.
This patch converts most pr_* calls to use the btrfs_* versions instead.
In some cases, this means adding plumbing to allow call sites access to
an fs_info pointer.
fs/btrfs/check-integrity.c is left alone for another day.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/reada.c')
-rw-r--r-- | fs/btrfs/reada.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/reada.c b/fs/btrfs/reada.c index 9e85300051cc..75bab76739be 100644 --- a/fs/btrfs/reada.c +++ b/fs/btrfs/reada.c | |||
@@ -820,7 +820,7 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all) | |||
820 | 820 | ||
821 | spin_lock(&fs_info->reada_lock); | 821 | spin_lock(&fs_info->reada_lock); |
822 | list_for_each_entry(device, &fs_devices->devices, dev_list) { | 822 | list_for_each_entry(device, &fs_devices->devices, dev_list) { |
823 | pr_debug("dev %lld has %d in flight\n", device->devid, | 823 | btrfs_debug(fs_info, "dev %lld has %d in flight", device->devid, |
824 | atomic_read(&device->reada_in_flight)); | 824 | atomic_read(&device->reada_in_flight)); |
825 | index = 0; | 825 | index = 0; |
826 | while (1) { | 826 | while (1) { |
@@ -830,8 +830,8 @@ static void dump_devs(struct btrfs_fs_info *fs_info, int all) | |||
830 | if (ret == 0) | 830 | if (ret == 0) |
831 | break; | 831 | break; |
832 | pr_debug(" zone %llu-%llu elems %llu locked %d devs", | 832 | pr_debug(" zone %llu-%llu elems %llu locked %d devs", |
833 | zone->start, zone->end, zone->elems, | 833 | zone->start, zone->end, zone->elems, |
834 | zone->locked); | 834 | zone->locked); |
835 | for (j = 0; j < zone->ndevs; ++j) { | 835 | for (j = 0; j < zone->ndevs; ++j) { |
836 | pr_cont(" %lld", | 836 | pr_cont(" %lld", |
837 | zone->devs[j]->devid); | 837 | zone->devs[j]->devid); |