git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f491ab4
)
nfs file fix
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Sun, 13 Mar 2005 03:12:53 +0000
(
03:12
+0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Sun, 13 Mar 2005 03:12:53 +0000
(
03:12
+0000)
fs/nfs/file.c
patch
|
blob
|
history
diff --git
a/fs/nfs/file.c
b/fs/nfs/file.c
index
ee2addb
..
6d9150d
100644
(file)
--- a/
fs/nfs/file.c
+++ b/
fs/nfs/file.c
@@
-72,7
+72,7
@@
struct inode_operations nfs_file_inode_operations = {
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 0;
@@
-89,7
+89,7
@@
nfs_file_open(struct inode *inode, struct file *filp)
int res;
res = nfs_check_flags(filp->f_flags);
- if (
!
res)
+ if (res)
return res;
lock_kernel();