aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 7505b4f1f597..159f588ca160 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -311,7 +311,7 @@ more:
311 req->r_readdir_offset = fi->next_offset; 311 req->r_readdir_offset = fi->next_offset;
312 req->r_args.readdir.frag = cpu_to_le32(frag); 312 req->r_args.readdir.frag = cpu_to_le32(frag);
313 req->r_args.readdir.max_entries = cpu_to_le32(max_entries); 313 req->r_args.readdir.max_entries = cpu_to_le32(max_entries);
314 req->r_num_caps = max_entries; 314 req->r_num_caps = max_entries + 1;
315 err = ceph_mdsc_do_request(mdsc, NULL, req); 315 err = ceph_mdsc_do_request(mdsc, NULL, req);
316 if (err < 0) { 316 if (err < 0) {
317 ceph_mdsc_put_request(req); 317 ceph_mdsc_put_request(req);