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/ioctl.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/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index c0dc05467ce8..edf5f0093f22 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -1262,7 +1262,7 @@ int btrfs_defrag_file(struct inode *inode, struct file *file, | |||
1262 | break; | 1262 | break; |
1263 | 1263 | ||
1264 | if (btrfs_defrag_cancelled(root->fs_info)) { | 1264 | if (btrfs_defrag_cancelled(root->fs_info)) { |
1265 | printk(KERN_DEBUG "btrfs: defrag_file cancelled\n"); | 1265 | printk(KERN_DEBUG "BTRFS: defrag_file cancelled\n"); |
1266 | ret = -EAGAIN; | 1266 | ret = -EAGAIN; |
1267 | break; | 1267 | break; |
1268 | } | 1268 | } |
@@ -1424,20 +1424,20 @@ static noinline int btrfs_ioctl_resize(struct file *file, | |||
1424 | ret = -EINVAL; | 1424 | ret = -EINVAL; |
1425 | goto out_free; | 1425 | goto out_free; |
1426 | } | 1426 | } |
1427 | printk(KERN_INFO "btrfs: resizing devid %llu\n", devid); | 1427 | btrfs_info(root->fs_info, "resizing devid %llu", devid); |
1428 | } | 1428 | } |
1429 | 1429 | ||
1430 | device = btrfs_find_device(root->fs_info, devid, NULL, NULL); | 1430 | device = btrfs_find_device(root->fs_info, devid, NULL, NULL); |
1431 | if (!device) { | 1431 | if (!device) { |
1432 | printk(KERN_INFO "btrfs: resizer unable to find device %llu\n", | 1432 | btrfs_info(root->fs_info, "resizer unable to find device %llu", |
1433 | devid); | 1433 | devid); |
1434 | ret = -ENODEV; | 1434 | ret = -ENODEV; |
1435 | goto out_free; | 1435 | goto out_free; |
1436 | } | 1436 | } |
1437 | 1437 | ||
1438 | if (!device->writeable) { | 1438 | if (!device->writeable) { |
1439 | printk(KERN_INFO "btrfs: resizer unable to apply on " | 1439 | btrfs_info(root->fs_info, |
1440 | "readonly device %llu\n", | 1440 | "resizer unable to apply on readonly device %llu", |
1441 | devid); | 1441 | devid); |
1442 | ret = -EPERM; | 1442 | ret = -EPERM; |
1443 | goto out_free; | 1443 | goto out_free; |
@@ -1489,7 +1489,7 @@ static noinline int btrfs_ioctl_resize(struct file *file, | |||
1489 | do_div(new_size, root->sectorsize); | 1489 | do_div(new_size, root->sectorsize); |
1490 | new_size *= root->sectorsize; | 1490 | new_size *= root->sectorsize; |
1491 | 1491 | ||
1492 | printk_in_rcu(KERN_INFO "btrfs: new size for %s is %llu\n", | 1492 | printk_in_rcu(KERN_INFO "BTRFS: new size for %s is %llu\n", |
1493 | rcu_str_deref(device->name), new_size); | 1493 | rcu_str_deref(device->name), new_size); |
1494 | 1494 | ||
1495 | if (new_size > old_size) { | 1495 | if (new_size > old_size) { |
@@ -1550,8 +1550,8 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file, | |||
1550 | 1550 | ||
1551 | src_inode = file_inode(src.file); | 1551 | src_inode = file_inode(src.file); |
1552 | if (src_inode->i_sb != file_inode(file)->i_sb) { | 1552 | if (src_inode->i_sb != file_inode(file)->i_sb) { |
1553 | printk(KERN_INFO "btrfs: Snapshot src from " | 1553 | btrfs_info(BTRFS_I(src_inode)->root->fs_info, |
1554 | "another FS\n"); | 1554 | "Snapshot src from another FS"); |
1555 | ret = -EINVAL; | 1555 | ret = -EINVAL; |
1556 | } else { | 1556 | } else { |
1557 | ret = btrfs_mksubvol(&file->f_path, name, namelen, | 1557 | ret = btrfs_mksubvol(&file->f_path, name, namelen, |
@@ -1934,7 +1934,7 @@ static noinline int search_ioctl(struct inode *inode, | |||
1934 | key.offset = (u64)-1; | 1934 | key.offset = (u64)-1; |
1935 | root = btrfs_read_fs_root_no_name(info, &key); | 1935 | root = btrfs_read_fs_root_no_name(info, &key); |
1936 | if (IS_ERR(root)) { | 1936 | if (IS_ERR(root)) { |
1937 | printk(KERN_ERR "could not find root %llu\n", | 1937 | printk(KERN_ERR "BTRFS: could not find root %llu\n", |
1938 | sk->tree_id); | 1938 | sk->tree_id); |
1939 | btrfs_free_path(path); | 1939 | btrfs_free_path(path); |
1940 | return -ENOENT; | 1940 | return -ENOENT; |
@@ -2024,7 +2024,7 @@ static noinline int btrfs_search_path_in_tree(struct btrfs_fs_info *info, | |||
2024 | key.offset = (u64)-1; | 2024 | key.offset = (u64)-1; |
2025 | root = btrfs_read_fs_root_no_name(info, &key); | 2025 | root = btrfs_read_fs_root_no_name(info, &key); |
2026 | if (IS_ERR(root)) { | 2026 | if (IS_ERR(root)) { |
2027 | printk(KERN_ERR "could not find root %llu\n", tree_id); | 2027 | printk(KERN_ERR "BTRFS: could not find root %llu\n", tree_id); |
2028 | ret = -ENOENT; | 2028 | ret = -ENOENT; |
2029 | goto out; | 2029 | goto out; |
2030 | } | 2030 | } |
@@ -3367,8 +3367,8 @@ static long btrfs_ioctl_default_subvol(struct file *file, void __user *argp) | |||
3367 | if (IS_ERR_OR_NULL(di)) { | 3367 | if (IS_ERR_OR_NULL(di)) { |
3368 | btrfs_free_path(path); | 3368 | btrfs_free_path(path); |
3369 | btrfs_end_transaction(trans, root); | 3369 | btrfs_end_transaction(trans, root); |
3370 | printk(KERN_ERR "Umm, you don't have the default dir item, " | 3370 | btrfs_err(new_root->fs_info, "Umm, you don't have the default dir" |
3371 | "this isn't going to work\n"); | 3371 | "item, this isn't going to work"); |
3372 | ret = -ENOENT; | 3372 | ret = -ENOENT; |
3373 | goto out; | 3373 | goto out; |
3374 | } | 3374 | } |
@@ -4469,8 +4469,8 @@ static int btrfs_ioctl_get_fslabel(struct file *file, void __user *arg) | |||
4469 | len = strnlen(label, BTRFS_LABEL_SIZE); | 4469 | len = strnlen(label, BTRFS_LABEL_SIZE); |
4470 | 4470 | ||
4471 | if (len == BTRFS_LABEL_SIZE) { | 4471 | if (len == BTRFS_LABEL_SIZE) { |
4472 | pr_warn("btrfs: label is too long, return the first %zu bytes\n", | 4472 | btrfs_warn(root->fs_info, |
4473 | --len); | 4473 | "label is too long, return the first %zu bytes", --len); |
4474 | } | 4474 | } |
4475 | 4475 | ||
4476 | ret = copy_to_user(arg, label, len); | 4476 | ret = copy_to_user(arg, label, len); |
@@ -4493,7 +4493,7 @@ static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg) | |||
4493 | return -EFAULT; | 4493 | return -EFAULT; |
4494 | 4494 | ||
4495 | if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { | 4495 | if (strnlen(label, BTRFS_LABEL_SIZE) == BTRFS_LABEL_SIZE) { |
4496 | pr_err("btrfs: unable to set label with more than %d bytes\n", | 4496 | btrfs_err(root->fs_info, "unable to set label with more than %d bytes", |
4497 | BTRFS_LABEL_SIZE - 1); | 4497 | BTRFS_LABEL_SIZE - 1); |
4498 | return -EINVAL; | 4498 | return -EINVAL; |
4499 | } | 4499 | } |