btrfs: use QSTR() in __btrfs_ioctl_snap_create
PATCH 1/1 btrfs: use QSTR() in __btrfs_ioctl_snap_create
Drop the length argument and use the simpler QSTR().
Signed-off-by Thorsten Blum <[email protected]>
--- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/ioctl.c +1 -1
@@ -1114,7 +1114,7 @@ static noinline int __btrfs_ioctl_snap_create(struct file *file, struct btrfs_qgroup_inherit *inherit) {int ret; -struct qstr qname =QSTR_INIT (name,strlen (name)); +struct qstr qname =QSTR (name);if (!S_ISDIR (file_inode (file)->i_mode))return -ENOTDIR ;
Quoted 3 lines · Thorsten Blum
Drop the length argument and use the simpler
QSTR().Signed-off-by Thorsten Blum <[email protected]>
Added to for-next, thanks.