Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Bricked
flo
Commits
1544fa0f
Commit
1544fa0f
authored
15 years ago
by
Trond Myklebust
Browse files
Options
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
No related merge requests found
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
list_for_each_entry
(
pos
,
&
nfsi
->
open_files
,
list
)
{
if
(
cred
!=
NULL
&&
pos
->
cred
!=
cred
)
continue
;
if
((
pos
->
mode
&
mode
)
=
=
mode
)
{
c
tx
=
get_nfs_open_context
(
pos
)
;
break
;
}
if
((
pos
->
mode
&
(
FMODE_READ
|
FMODE_WRITE
)
)
!
=
mode
)
c
ontinue
;
ctx
=
get_nfs_open_context
(
pos
)
;
break
;
}
spin_unlock
(
&
inode
->
i_lock
);
return
ctx
;
...
...
This diff is collapsed.
Click to expand it.
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