aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c4
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 */
2639void dentry_update_name_case(struct dentry *dentry, struct qstr *name) 2639void 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 */
3041static int prepend_name(char **buffer, int *buflen, struct qstr *name) 3041static 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);