summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-08-21 00:06:26 +0200
committerJ. Bruce Fields <bfields@redhat.com>2010-08-26 19:21:09 +0200
commit18608ad49cffa430cfd0b4e027dedfe3114f916e (patch)
treee821f9abcfc309d65bbbc5df27665c391218d89c /fs
parentnfsd4: bad BUG() in preprocess_stateid_op (diff)
downloadlinux-18608ad49cffa430cfd0b4e027dedfe3114f916e.tar.xz
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.h2
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];