aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-07-20 16:11:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-07-20 23:30:06 -0400
commit7f5458ec5c13b4489eff220b6429e571e2140aa6 (patch)
tree4e4e994339e58d0c7ca193bc7f70054e2a63fd76
parent4f3ccd76572a83278166c12f3e351e74cc03578c (diff)
qstr: constify instances in logfs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/logfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c
index 2d5336bd4efd..438b7c516fd6 100644
--- a/fs/logfs/dir.c
+++ b/fs/logfs/dir.c
@@ -156,7 +156,7 @@ static pgoff_t hash_index(u32 hash, int round)
156 156
157static struct page *logfs_get_dd_page(struct inode *dir, struct dentry *dentry) 157static struct page *logfs_get_dd_page(struct inode *dir, struct dentry *dentry)
158{ 158{
159 struct qstr *name = &dentry->d_name; 159 const struct qstr *name = &dentry->d_name;
160 struct page *page; 160 struct page *page;
161 struct logfs_disk_dentry *dd; 161 struct logfs_disk_dentry *dd;
162 u32 hash = hash_32(name->name, name->len, 0); 162 u32 hash = hash_32(name->name, name->len, 0);
@@ -323,7 +323,7 @@ static int logfs_readdir(struct file *file, struct dir_context *ctx)
323 return 0; 323 return 0;
324} 324}
325 325
326static void logfs_set_name(struct logfs_disk_dentry *dd, struct qstr *name) 326static void logfs_set_name(struct logfs_disk_dentry *dd, const struct qstr *name)
327{ 327{
328 dd->namelen = cpu_to_be16(name->len); 328 dd->namelen = cpu_to_be16(name->len);
329 memcpy(dd->name, name->name, name->len); 329 memcpy(dd->name, name->name, name->len);