Commit 031ded82 authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

[PATCH] Fix NFS client screw-up in fcntl f_op removal

Fix stupid thinkos in the fcntl f_op removal code.
parent e8ce2f4e
...@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment