Skip to content

Commit 1e95e9a

Browse files
author
Al Viro
committed
qstr: constify instances in lustre
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 185de68 commit 1e95e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/staging/lustre/lustre/llite/statahead.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ static int sa_args_init(struct inode *dir, struct inode *child,
783783
struct ll_sa_entry *entry, struct md_enqueue_info **pmi,
784784
struct ldlm_enqueue_info **pei)
785785
{
786-
struct qstr *qstr = &entry->se_qstr;
786+
const struct qstr *qstr = &entry->se_qstr;
787787
struct ll_inode_info *lli = ll_i2info(dir);
788788
struct md_enqueue_info *minfo;
789789
struct ldlm_enqueue_info *einfo;
@@ -1342,7 +1342,7 @@ enum {
13421342
static int is_first_dirent(struct inode *dir, struct dentry *dentry)
13431343
{
13441344
struct ll_dir_chain chain;
1345-
struct qstr *target = &dentry->d_name;
1345+
const struct qstr *target = &dentry->d_name;
13461346
struct page *page;
13471347
__u64 pos = 0;
13481348
int dot_de;

0 commit comments

Comments
 (0)