summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-02-01 15:07:56 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2025-02-01 15:07:56 -0800
commita86bf2283d2c9769205407e2b54777c03d012939 (patch)
tree590ff51c17884f1f2c0da042c8febd8c1ce0780a /fs/bcachefs/util.h
parentMerge tag 'mips_6.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips... (diff)
parentadd a string-to-qstr constructor (diff)
downloadlinux-a86bf2283d2c9769205407e2b54777c03d012939.tar.gz
linux-a86bf2283d2c9769205407e2b54777c03d012939.zip
Merge tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs cleanups from Al Viro: "Two unrelated patches - one is a removal of long-obsolete include in overlayfs (it used to need fs/internal.h, but the extern it wanted has been moved back to include/linux/namei.h) and another introduces convenience helper constructing struct qstr by a NUL-terminated string" * tag 'pull-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: add a string-to-qstr constructor fs/overlayfs/namei.c: get rid of include ../internal.h
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index 1a1720116071..e7c3541b38f3 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -670,8 +670,6 @@ static inline int cmp_le32(__le32 l, __le32 r)
#include <linux/uuid.h>
-#define QSTR(n) { { { .len = strlen(n) } }, .name = n }
-
static inline bool qstr_eq(const struct qstr l, const struct qstr r)
{
return l.len == r.len && !memcmp(l.name, r.name, l.len);