* [PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create
@ 2026-04-22 12:36 Thorsten Blum
2026-04-22 19:50 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-04-22 12:36 UTC (permalink / raw)
To: Chris Mason, David Sterba; +Cc: Thorsten Blum, linux-btrfs, linux-kernel
Drop the length argument and use the simpler QSTR().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
fs/btrfs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index b2e447f5005c..4d9e62f3c668 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create
2026-04-22 12:36 [PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create Thorsten Blum
@ 2026-04-22 19:50 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2026-04-22 19:50 UTC (permalink / raw)
To: Thorsten Blum; +Cc: Chris Mason, David Sterba, linux-btrfs, linux-kernel
On Wed, Apr 22, 2026 at 02:36:36PM +0200, Thorsten Blum wrote:
> Drop the length argument and use the simpler QSTR().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Added to for-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-22 19:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-22 12:36 [PATCH] btrfs: use QSTR() in __btrfs_ioctl_snap_create Thorsten Blum
2026-04-22 19:50 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox