aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-ref.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-09-20 10:05:02 -0400
committerDavid Sterba <dsterba@suse.com>2016-09-26 13:37:04 -0400
commitab8d0fc48dba09e0a2b8b0dbfe144d4de9eb874f (patch)
treee6ac2c4d2f3d81a0d7b3b398db3fb48f2ed1630c /fs/btrfs/delayed-ref.c
parent62e855771dacf7c4d6daf9741642a965e7066d31 (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/delayed-ref.c')
-rw-r--r--fs/btrfs/delayed-ref.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c
index a5d81f361d0b..8d93854a4b4f 100644
--- a/fs/btrfs/delayed-ref.c
+++ b/fs/btrfs/delayed-ref.c
@@ -322,10 +322,11 @@ int btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info,
322 elem = list_first_entry(&fs_info->tree_mod_seq_list, 322 elem = list_first_entry(&fs_info->tree_mod_seq_list,
323 struct seq_list, list); 323 struct seq_list, list);
324 if (seq >= elem->seq) { 324 if (seq >= elem->seq) {
325 pr_debug("holding back delayed_ref %#x.%x, lowest is %#x.%x (%p)\n", 325 btrfs_debug(fs_info,
326 (u32)(seq >> 32), (u32)seq, 326 "holding back delayed_ref %#x.%x, lowest is %#x.%x (%p)",
327 (u32)(elem->seq >> 32), (u32)elem->seq, 327 (u32)(seq >> 32), (u32)seq,
328 delayed_refs); 328 (u32)(elem->seq >> 32), (u32)elem->seq,
329 delayed_refs);
329 ret = 1; 330 ret = 1;
330 } 331 }
331 } 332 }