Commit 18d44c5d authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

ceph: allocate sparse_ext map only for sparse reads



If mounted with sparseread option, ceph_direct_read_write() ends up
making an unnecessarily allocation for O_DIRECT writes.

Fixes: 03bc06c7 ("ceph: add new mount option to enable sparse reads")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Reviewed-by: default avatarAlex Markuze <amarkuze@redhat.com>
parent 66e0c4f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment