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
1544fa0f
Commit
1544fa0f
authored
Mar 25, 2010
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Fix the mode calculation in nfs_find_open_context
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
80e60639
Changes
1
Hide 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 @
1544fa0f
...
@@ -623,10 +623,10 @@ struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_c
...
@@ -623,10 +623,10 @@ struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_c
list_for_each_entry
(
pos
,
&
nfsi
->
open_files
,
list
)
{
list_for_each_entry
(
pos
,
&
nfsi
->
open_files
,
list
)
{
if
(
cred
!=
NULL
&&
pos
->
cred
!=
cred
)
if
(
cred
!=
NULL
&&
pos
->
cred
!=
cred
)
continue
;
continue
;
if
((
pos
->
mode
&
mode
)
==
mode
)
{
if
((
pos
->
mode
&
(
FMODE_READ
|
FMODE_WRITE
))
!=
mode
)
c
tx
=
get_nfs_open_context
(
pos
)
;
c
ontinue
;
break
;
ctx
=
get_nfs_open_context
(
pos
)
;
}
break
;
}
}
spin_unlock
(
&
inode
->
i_lock
);
spin_unlock
(
&
inode
->
i_lock
);
return
ctx
;
return
ctx
;
...
...
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