orangefs: free readdir buffer index before the dir_emit loop
authorMartin Brandenburg <martin@omnibond.com>
Wed, 17 Feb 2016 17:55:42 +0000 (12:55 -0500)
committerMike Marshall <hubcap@omnibond.com>
Wed, 24 Feb 2016 22:07:50 +0000 (17:07 -0500)
commitee3b8d377ca014b0ec4ea8988ba6fbe8463bd8d9
treed14c7a6eb47e21e980868294cdb11ce606444d8a
parentadcf34a2893386c99e80feee36e30a782b3815e7
orangefs: free readdir buffer index before the dir_emit loop

We only need it while the service operation is actually in progress
since it is only used to co-ordinate the client-core's memory use. The
kernel allocates its own space.

Also clean up some comments which mislead the reader into thinking
the readdir buffers are shared memory.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/dir.c