]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ceph: try to allocate a smaller extent map for sparse read
authorXiubo Li <xiubli@redhat.com>
Tue, 7 Nov 2023 02:44:41 +0000 (10:44 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 15 Jan 2024 14:40:50 +0000 (15:40 +0100)
commitaaefabc4a5f7ae48682c4d2d5d10faaf95c08eb9
tree68fb900421a3f1eb962988abc7a13b621cacac69
parentb79e4a0aa902322756ced7361a2c637d462c3c1c
ceph: try to allocate a smaller extent map for sparse read

In fscrypt case and for a smaller read length we can predict the
max count of the extent map. And for small read length use cases
this could save some memories.

[ idryomov: squash into a single patch to avoid build break, drop
  redundant variable in ceph_alloc_sparse_ext_map() ]

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/file.c
fs/ceph/super.h
include/linux/ceph/osd_client.h