ceph: preallocate buffer for readdir reply
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 29 Mar 2014 05:41:15 +0000 (13:41 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:22 +0000 (21:08 -0700)
commit54008399dc0ce511a07b87f1af3d1f5c791982a4
tree6482779b43a6860debd35d11bc9a717efb262e20
parent18cb95af2d7c69aa136ab13f02dd55188c120e75
ceph: preallocate buffer for readdir reply

Preallocate buffer for readdir reply. Limit number of entries in
readdir reply according to the buffer size.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h