Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
b0446be4
Commit
b0446be4
authored
Aug 09, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch cachefiles to kern_path()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
306bb73d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
fs/cachefiles/bind.c
fs/cachefiles/bind.c
+4
-7
No files found.
fs/cachefiles/bind.c
View file @
b0446be4
...
@@ -84,7 +84,7 @@ int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args)
...
@@ -84,7 +84,7 @@ int cachefiles_daemon_bind(struct cachefiles_cache *cache, char *args)
static
int
cachefiles_daemon_add_cache
(
struct
cachefiles_cache
*
cache
)
static
int
cachefiles_daemon_add_cache
(
struct
cachefiles_cache
*
cache
)
{
{
struct
cachefiles_object
*
fsdef
;
struct
cachefiles_object
*
fsdef
;
struct
nameidata
nd
;
struct
path
path
;
struct
kstatfs
stats
;
struct
kstatfs
stats
;
struct
dentry
*
graveyard
,
*
cachedir
,
*
root
;
struct
dentry
*
graveyard
,
*
cachedir
,
*
root
;
const
struct
cred
*
saved_cred
;
const
struct
cred
*
saved_cred
;
...
@@ -114,15 +114,12 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
...
@@ -114,15 +114,12 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
_debug
(
"- fsdef %p"
,
fsdef
);
_debug
(
"- fsdef %p"
,
fsdef
);
/* look up the directory at the root of the cache */
/* look up the directory at the root of the cache */
memset
(
&
nd
,
0
,
sizeof
(
nd
));
ret
=
kern_path
(
cache
->
rootdirname
,
LOOKUP_DIRECTORY
,
&
path
);
ret
=
path_lookup
(
cache
->
rootdirname
,
LOOKUP_DIRECTORY
,
&
nd
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
error_open_root
;
goto
error_open_root
;
cache
->
mnt
=
mntget
(
nd
.
path
.
mnt
);
cache
->
mnt
=
path
.
mnt
;
root
=
dget
(
nd
.
path
.
dentry
);
root
=
path
.
dentry
;
path_put
(
&
nd
.
path
);
/* check parameters */
/* check parameters */
ret
=
-
EOPNOTSUPP
;
ret
=
-
EOPNOTSUPP
;
...
...
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