From d3e4fa7c97fe491b76c9043b5447b817eb730f44 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Fri, 20 Aug 2010 18:06:26 -0400 Subject: [PATCH] --- yaml --- r: 210036 b: refs/heads/master c: 18608ad49cffa430cfd0b4e027dedfe3114f916e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/state.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index b53fa7d4b1ad..a0591e0c5a04 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 30c0e1ef0a8a6cab4e0f9357698c81a2f7f73cc5 +refs/heads/master: 18608ad49cffa430cfd0b4e027dedfe3114f916e diff --git a/trunk/fs/nfsd/state.h b/trunk/fs/nfsd/state.h index 7731a75971dd..84579c86b13d 100644 --- a/trunk/fs/nfsd/state.h +++ b/trunk/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];