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];