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
6eae7974
Commit
6eae7974
authored
Jan 30, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch alloc_nfs_open_context() to struct path
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
2096f759
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/nfs/inode.c
fs/nfs/inode.c
+4
-4
No files found.
fs/nfs/inode.c
View file @
6eae7974
...
...
@@ -574,14 +574,14 @@ void nfs_close_context(struct nfs_open_context *ctx, int is_sync)
nfs_revalidate_inode
(
server
,
inode
);
}
static
struct
nfs_open_context
*
alloc_nfs_open_context
(
struct
vfsmount
*
mnt
,
struct
dentry
*
dentry
,
struct
rpc_cred
*
cred
)
static
struct
nfs_open_context
*
alloc_nfs_open_context
(
struct
path
*
path
,
struct
rpc_cred
*
cred
)
{
struct
nfs_open_context
*
ctx
;
ctx
=
kmalloc
(
sizeof
(
*
ctx
),
GFP_KERNEL
);
if
(
ctx
!=
NULL
)
{
ctx
->
path
.
dentry
=
dget
(
dentry
)
;
ctx
->
path
.
mnt
=
mntget
(
mnt
);
ctx
->
path
=
*
path
;
path_get
(
&
ctx
->
path
);
ctx
->
cred
=
get_rpccred
(
cred
);
ctx
->
state
=
NULL
;
ctx
->
lockowner
=
current
->
files
;
...
...
@@ -686,7 +686,7 @@ int nfs_open(struct inode *inode, struct file *filp)
cred
=
rpc_lookup_cred
();
if
(
IS_ERR
(
cred
))
return
PTR_ERR
(
cred
);
ctx
=
alloc_nfs_open_context
(
filp
->
f_path
.
mnt
,
filp
->
f_path
.
dentry
,
cred
);
ctx
=
alloc_nfs_open_context
(
&
filp
->
f_path
,
cred
);
put_rpccred
(
cred
);
if
(
ctx
==
NULL
)
return
-
ENOMEM
;
...
...
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