diff options
author | Frank Holton <fholton@gmail.com> | 2013-12-20 11:37:06 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 16:20:05 -0500 |
commit | efe120a067c8674a8ae21b194f0e68f098b61ee2 (patch) | |
tree | 1edb3b59b689a96ec15b548387c048ee959fb6fd /fs/btrfs/uuid-tree.c | |
parent | 5de865eebb8330eee19c37b31fb6f315a09d4273 (diff) |
Btrfs: convert printk to btrfs_ and fix BTRFS prefix
Convert all applicable cases of printk and pr_* to the btrfs_* macros.
Fix all uses of the BTRFS prefix.
Signed-off-by: Frank Holton <fholton@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/uuid-tree.c')
-rw-r--r-- | fs/btrfs/uuid-tree.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/btrfs/uuid-tree.c b/fs/btrfs/uuid-tree.c index fbda90004fe9..f6a4c03ee7d8 100644 --- a/fs/btrfs/uuid-tree.c +++ b/fs/btrfs/uuid-tree.c | |||
@@ -69,7 +69,7 @@ static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, | |||
69 | ret = -ENOENT; | 69 | ret = -ENOENT; |
70 | 70 | ||
71 | if (!IS_ALIGNED(item_size, sizeof(u64))) { | 71 | if (!IS_ALIGNED(item_size, sizeof(u64))) { |
72 | pr_warn("btrfs: uuid item with illegal size %lu!\n", | 72 | btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", |
73 | (unsigned long)item_size); | 73 | (unsigned long)item_size); |
74 | goto out; | 74 | goto out; |
75 | } | 75 | } |
@@ -137,7 +137,8 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, | |||
137 | offset = btrfs_item_ptr_offset(eb, slot); | 137 | offset = btrfs_item_ptr_offset(eb, slot); |
138 | offset += btrfs_item_size_nr(eb, slot) - sizeof(subid_le); | 138 | offset += btrfs_item_size_nr(eb, slot) - sizeof(subid_le); |
139 | } else if (ret < 0) { | 139 | } else if (ret < 0) { |
140 | pr_warn("btrfs: insert uuid item failed %d (0x%016llx, 0x%016llx) type %u!\n", | 140 | btrfs_warn(uuid_root->fs_info, "insert uuid item failed %d " |
141 | "(0x%016llx, 0x%016llx) type %u!", | ||
141 | ret, (unsigned long long)key.objectid, | 142 | ret, (unsigned long long)key.objectid, |
142 | (unsigned long long)key.offset, type); | 143 | (unsigned long long)key.offset, type); |
143 | goto out; | 144 | goto out; |
@@ -183,7 +184,7 @@ int btrfs_uuid_tree_rem(struct btrfs_trans_handle *trans, | |||
183 | 184 | ||
184 | ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); | 185 | ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); |
185 | if (ret < 0) { | 186 | if (ret < 0) { |
186 | pr_warn("btrfs: error %d while searching for uuid item!\n", | 187 | btrfs_warn(uuid_root->fs_info, "error %d while searching for uuid item!", |
187 | ret); | 188 | ret); |
188 | goto out; | 189 | goto out; |
189 | } | 190 | } |
@@ -197,7 +198,7 @@ int btrfs_uuid_tree_rem(struct btrfs_trans_handle *trans, | |||
197 | offset = btrfs_item_ptr_offset(eb, slot); | 198 | offset = btrfs_item_ptr_offset(eb, slot); |
198 | item_size = btrfs_item_size_nr(eb, slot); | 199 | item_size = btrfs_item_size_nr(eb, slot); |
199 | if (!IS_ALIGNED(item_size, sizeof(u64))) { | 200 | if (!IS_ALIGNED(item_size, sizeof(u64))) { |
200 | pr_warn("btrfs: uuid item with illegal size %lu!\n", | 201 | btrfs_warn(uuid_root->fs_info, "uuid item with illegal size %lu!", |
201 | (unsigned long)item_size); | 202 | (unsigned long)item_size); |
202 | ret = -ENOENT; | 203 | ret = -ENOENT; |
203 | goto out; | 204 | goto out; |
@@ -299,7 +300,7 @@ again_search_slot: | |||
299 | offset = btrfs_item_ptr_offset(leaf, slot); | 300 | offset = btrfs_item_ptr_offset(leaf, slot); |
300 | item_size = btrfs_item_size_nr(leaf, slot); | 301 | item_size = btrfs_item_size_nr(leaf, slot); |
301 | if (!IS_ALIGNED(item_size, sizeof(u64))) { | 302 | if (!IS_ALIGNED(item_size, sizeof(u64))) { |
302 | pr_warn("btrfs: uuid item with illegal size %lu!\n", | 303 | btrfs_warn(fs_info, "uuid item with illegal size %lu!", |
303 | (unsigned long)item_size); | 304 | (unsigned long)item_size); |
304 | goto skip; | 305 | goto skip; |
305 | } | 306 | } |
@@ -349,6 +350,6 @@ skip: | |||
349 | out: | 350 | out: |
350 | btrfs_free_path(path); | 351 | btrfs_free_path(path); |
351 | if (ret) | 352 | if (ret) |
352 | pr_warn("btrfs: btrfs_uuid_tree_iterate failed %d\n", ret); | 353 | btrfs_warn(fs_info, "btrfs_uuid_tree_iterate failed %d", ret); |
353 | return 0; | 354 | return 0; |
354 | } | 355 | } |