Skip to content

Commit cb8bae5

Browse files
tobluxadam900710
authored andcommitted
btrfs: use QSTR() in __btrfs_ioctl_snap_create()
Drop the length argument and use the simpler QSTR(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent d6cf0a5 commit cb8bae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/btrfs/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ static noinline int __btrfs_ioctl_snap_create(struct file *file,
11121112
struct btrfs_qgroup_inherit *inherit)
11131113
{
11141114
int ret;
1115-
struct qstr qname = QSTR_INIT(name, strlen(name));
1115+
struct qstr qname = QSTR(name);
11161116

11171117
if (!S_ISDIR(file_inode(file)->i_mode))
11181118
return -ENOTDIR;

0 commit comments

Comments
 (0)