diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-13 06:32:14 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-13 16:12:02 +0200 |
commit | efe39651f08813180f37dc508d950fc7d92b29a8 (patch) | |
tree | 69351781601d1c3c64a91f5728b7b388609281e3 /fs/ext4 | |
parent | nfsd: fix error value on allocation failure in nfsd4_decode_test_stateid() (diff) | |
download | linux-efe39651f08813180f37dc508d950fc7d92b29a8.tar.xz linux-efe39651f08813180f37dc508d950fc7d92b29a8.zip |
nfsd: fix compose_entry_fh() failure exits
Restore the original logics ("fail on mountpoints, negatives and in
case of fh_compose() failures"). Since commit 8177e (nfsd: clean up
readdirplus encoding) that got broken -
rv = fh_compose(fhp, exp, dchild, &cd->fh);
if (rv)
goto out;
if (!dchild->d_inode)
goto out;
rv = 0;
out:
is equivalent to
rv = fh_compose(fhp, exp, dchild, &cd->fh);
out:
and the second check has no effect whatsoever...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions