Commit 18608ad4 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd4: typo fix in find_any_file

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 30c0e1ef
...@@ -379,7 +379,7 @@ static inline struct file *find_any_file(struct nfs4_file *f) ...@@ -379,7 +379,7 @@ static inline struct file *find_any_file(struct nfs4_file *f)
{ {
if (f->fi_fds[O_RDWR]) if (f->fi_fds[O_RDWR])
return f->fi_fds[O_RDWR]; return f->fi_fds[O_RDWR];
else if (f->fi_fds[O_RDWR]) else if (f->fi_fds[O_WRONLY])
return f->fi_fds[O_WRONLY]; return f->fi_fds[O_WRONLY];
else else
return f->fi_fds[O_RDONLY]; return f->fi_fds[O_RDONLY];
......
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