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/qgroup.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/qgroup.c')
-rw-r--r-- | fs/btrfs/qgroup.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 0f9df5a68c54..11f4fffe503e 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c | |||
@@ -2257,10 +2257,11 @@ qgroup_rescan_leaf(struct btrfs_fs_info *fs_info, struct btrfs_path *path, | |||
2257 | &fs_info->qgroup_rescan_progress, | 2257 | &fs_info->qgroup_rescan_progress, |
2258 | path, 1, 0); | 2258 | path, 1, 0); |
2259 | 2259 | ||
2260 | pr_debug("current progress key (%llu %u %llu), search_slot ret %d\n", | 2260 | btrfs_debug(fs_info, |
2261 | fs_info->qgroup_rescan_progress.objectid, | 2261 | "current progress key (%llu %u %llu), search_slot ret %d", |
2262 | fs_info->qgroup_rescan_progress.type, | 2262 | fs_info->qgroup_rescan_progress.objectid, |
2263 | fs_info->qgroup_rescan_progress.offset, ret); | 2263 | fs_info->qgroup_rescan_progress.type, |
2264 | fs_info->qgroup_rescan_progress.offset, ret); | ||
2264 | 2265 | ||
2265 | if (ret) { | 2266 | if (ret) { |
2266 | /* | 2267 | /* |
@@ -2390,7 +2391,7 @@ out: | |||
2390 | ret = update_qgroup_status_item(trans, fs_info, fs_info->quota_root); | 2391 | ret = update_qgroup_status_item(trans, fs_info, fs_info->quota_root); |
2391 | if (ret < 0) { | 2392 | if (ret < 0) { |
2392 | err = ret; | 2393 | err = ret; |
2393 | btrfs_err(fs_info, "fail to update qgroup status: %d\n", err); | 2394 | btrfs_err(fs_info, "fail to update qgroup status: %d", err); |
2394 | } | 2395 | } |
2395 | btrfs_end_transaction(trans, fs_info->quota_root); | 2396 | btrfs_end_transaction(trans, fs_info->quota_root); |
2396 | 2397 | ||