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
99b75d35
Commit
99b75d35
authored
Aug 13, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stupid thinkos in the fcntl f_op removal code.
Tssk.
parent
b51989ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/nfs/file.c
fs/nfs/file.c
+2
-2
No files found.
fs/nfs/file.c
View file @
99b75d35
...
@@ -72,7 +72,7 @@ struct inode_operations nfs_file_inode_operations = {
...
@@ -72,7 +72,7 @@ struct inode_operations nfs_file_inode_operations = {
static
int
nfs_check_flags
(
int
flags
)
static
int
nfs_check_flags
(
int
flags
)
{
{
if
(
flags
&
(
O_APPEND
|
O_DIRECT
))
if
(
(
flags
&
(
O_APPEND
|
O_DIRECT
))
==
(
O_APPEND
|
O_DIRECT
))
return
-
EINVAL
;
return
-
EINVAL
;
return
0
;
return
0
;
...
@@ -89,7 +89,7 @@ nfs_file_open(struct inode *inode, struct file *filp)
...
@@ -89,7 +89,7 @@ nfs_file_open(struct inode *inode, struct file *filp)
int
res
;
int
res
;
res
=
nfs_check_flags
(
filp
->
f_flags
);
res
=
nfs_check_flags
(
filp
->
f_flags
);
if
(
!
res
)
if
(
res
)
return
res
;
return
res
;
lock_kernel
();
lock_kernel
();
...
...
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