nfsd: clean up readdirplus encoding
authorJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 4 Sep 2009 18:13:09 +0000 (14:13 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 4 Sep 2009 19:47:40 +0000 (15:47 -0400)
commit8177e6d6dfb9cd03d9bdeb647c32161f8f58f686
tree3e6781150308ea56183593e0d4c1380a8515e6b6
parent1be10a88cac5e589cdd2bcb0cf6a13ed30bcc233
nfsd: clean up readdirplus encoding

Make the return from compose_entry_fh() zero or an error, even though
the returned error isn't used, just to make the meaning of the return
immediately obvious.

Move some repeated code out of main function into helper.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs3xdr.c