Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2004-08-13 13:52:45 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-13 13:52:45 -0700
commit031ded821269954921c6a291194435b4fb0af13a (patch)
treec8c64863eff58e3f22dbfc23a6292a3c367d50c1
parente8ce2f4ed7280dfde4aee0c2de1622b4f285d20b (diff)
[PATCH] Fix NFS client screw-up in fcntl f_op removal
Fix stupid thinkos in the fcntl f_op removal code.
-rw-r--r--fs/nfs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index ee2addb5c449..6d9150de803a 100644
--- 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();