Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9aba36de
Commit
9aba36de
authored
Jul 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qstr constify instances in fs/dcache.c
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
beffb8fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fs/dcache.c
fs/dcache.c
+2
-2
include/linux/dcache.h
include/linux/dcache.h
+1
-1
No files found.
fs/dcache.c
View file @
9aba36de
...
...
@@ -2708,7 +2708,7 @@ EXPORT_SYMBOL(d_exact_alias);
* Parent inode i_mutex must be held over d_lookup and into this call (to
* keep renames and concurrent inserts, and readdir(2) away).
*/
void
dentry_update_name_case
(
struct
dentry
*
dentry
,
struct
qstr
*
name
)
void
dentry_update_name_case
(
struct
dentry
*
dentry
,
const
struct
qstr
*
name
)
{
BUG_ON
(
!
inode_is_locked
(
dentry
->
d_parent
->
d_inode
));
BUG_ON
(
dentry
->
d_name
.
len
!=
name
->
len
);
/* d_lookup gives this */
...
...
@@ -3111,7 +3111,7 @@ static int prepend(char **buffer, int *buflen, const char *str, int namelen)
* Data dependency barrier is needed to make sure that we see that terminating
* NUL. Alpha strikes again, film at 11...
*/
static
int
prepend_name
(
char
**
buffer
,
int
*
buflen
,
struct
qstr
*
name
)
static
int
prepend_name
(
char
**
buffer
,
int
*
buflen
,
const
struct
qstr
*
name
)
{
const
char
*
dname
=
ACCESS_ONCE
(
name
->
name
);
u32
dlen
=
ACCESS_ONCE
(
name
->
len
);
...
...
include/linux/dcache.h
View file @
9aba36de
...
...
@@ -264,7 +264,7 @@ extern void d_rehash(struct dentry *);
extern
void
d_add
(
struct
dentry
*
,
struct
inode
*
);
extern
void
dentry_update_name_case
(
struct
dentry
*
,
struct
qstr
*
);
extern
void
dentry_update_name_case
(
struct
dentry
*
,
const
struct
qstr
*
);
/* used for rename() and baskets */
extern
void
d_move
(
struct
dentry
*
,
struct
dentry
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment