diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-08-20 18:06:26 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-08-26 13:21:09 -0400 |
commit | 18608ad49cffa430cfd0b4e027dedfe3114f916e (patch) | |
tree | e821f9abcfc309d65bbbc5df27665c391218d89c /fs/nfsd/state.h | |
parent | 30c0e1ef0a8a6cab4e0f9357698c81a2f7f73cc5 (diff) |
nfsd4: typo fix in find_any_file
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 7731a75971dd..84579c86b13d 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -379,7 +379,7 @@ static inline struct file *find_any_file(struct nfs4_file *f) | |||
379 | { | 379 | { |
380 | if (f->fi_fds[O_RDWR]) | 380 | if (f->fi_fds[O_RDWR]) |
381 | return f->fi_fds[O_RDWR]; | 381 | return f->fi_fds[O_RDWR]; |
382 | else if (f->fi_fds[O_RDWR]) | 382 | else if (f->fi_fds[O_WRONLY]) |
383 | return f->fi_fds[O_WRONLY]; | 383 | return f->fi_fds[O_WRONLY]; |
384 | else | 384 | else |
385 | return f->fi_fds[O_RDONLY]; | 385 | return f->fi_fds[O_RDONLY]; |