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 | |
parent | 30c0e1ef0a8a6cab4e0f9357698c81a2f7f73cc5 (diff) | |
download | blackbird-op-linux-18608ad49cffa430cfd0b4e027dedfe3114f916e.tar.gz blackbird-op-linux-18608ad49cffa430cfd0b4e027dedfe3114f916e.zip |
nfsd4: typo fix in find_any_file
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-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) { if (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]; else return f->fi_fds[O_RDONLY]; |