diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-06 09:49:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-06 09:49:02 -0400 |
commit | 835c92d43b29eb354abdbd5475308a474d7efdfa (patch) | |
tree | 9b7808c219f01859508d1a7fca2f39eccb4b19b9 /fs/dcache.c | |
parent | ce804bf598b59427a2c930e5c1f5fe2e51f1b517 (diff) | |
parent | 19a6d89de2f10ee3b18c3b9fd6c7c2e249a30d71 (diff) |
Merge branch 'work.const-qstr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull qstr constification updates from Al Viro:
"Fairly self-contained bunch - surprising lot of places passes struct
qstr * as an argument when const struct qstr * would suffice; it
complicates analysis for no good reason.
I'd prefer to feed that separately from the assorted fixes (those are
in #for-linus and with somewhat trickier topology)"
* 'work.const-qstr' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
qstr: constify instances in adfs
qstr: constify instances in lustre
qstr: constify instances in f2fs
qstr: constify instances in ext2
qstr: constify instances in vfat
qstr: constify instances in procfs
qstr: constify instances in fuse
qstr constify instances in fs/dcache.c
qstr: constify instances in nfs
qstr: constify instances in ocfs2
qstr: constify instances in autofs4
qstr: constify instances in hfs
qstr: constify instances in hfsplus
qstr: constify instances in logfs
qstr: constify dentry_init_security
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index b90cf8e09d5b..96635a30fb26 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -2636,7 +2636,7 @@ EXPORT_SYMBOL(d_exact_alias); | |||
2636 | * Parent inode i_mutex must be held over d_lookup and into this call (to | 2636 | * Parent inode i_mutex must be held over d_lookup and into this call (to |
2637 | * keep renames and concurrent inserts, and readdir(2) away). | 2637 | * keep renames and concurrent inserts, and readdir(2) away). |
2638 | */ | 2638 | */ |
2639 | void dentry_update_name_case(struct dentry *dentry, struct qstr *name) | 2639 | void dentry_update_name_case(struct dentry *dentry, const struct qstr *name) |
2640 | { | 2640 | { |
2641 | BUG_ON(!inode_is_locked(dentry->d_parent->d_inode)); | 2641 | BUG_ON(!inode_is_locked(dentry->d_parent->d_inode)); |
2642 | BUG_ON(dentry->d_name.len != name->len); /* d_lookup gives this */ | 2642 | BUG_ON(dentry->d_name.len != name->len); /* d_lookup gives this */ |
@@ -3038,7 +3038,7 @@ static int prepend(char **buffer, int *buflen, const char *str, int namelen) | |||
3038 | * Data dependency barrier is needed to make sure that we see that terminating | 3038 | * Data dependency barrier is needed to make sure that we see that terminating |
3039 | * NUL. Alpha strikes again, film at 11... | 3039 | * NUL. Alpha strikes again, film at 11... |
3040 | */ | 3040 | */ |
3041 | static int prepend_name(char **buffer, int *buflen, struct qstr *name) | 3041 | static int prepend_name(char **buffer, int *buflen, const struct qstr *name) |
3042 | { | 3042 | { |
3043 | const char *dname = ACCESS_ONCE(name->name); | 3043 | const char *dname = ACCESS_ONCE(name->name); |
3044 | u32 dlen = ACCESS_ONCE(name->len); | 3044 | u32 dlen = ACCESS_ONCE(name->len); |