diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2019-01-30 15:14:48 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-03-05 18:55:17 +0100 |
commit | 0c93e1b7a26b418247218d08a6d0b95d61c9c415 (patch) | |
tree | 036a8f093a51dce44a8263df242b5ee17b9e0c3b /fs/ceph/file.c | |
parent | 6484cbe987e0e44b8ebf224fc9faf7f73ace10d2 (diff) | |
download | linux-0c93e1b7a26b418247218d08a6d0b95d61c9c415.tar.gz |
rbd: round off and ignore discards that are too small
If, after rounding off, the discard request is smaller than alloc_size,
drop it on the floor in __rbd_img_fill_request().
Default alloc_size to 64k. This should cover both HDD and SSD based
bluestore OSDs and somewhat improve things for filestore. For OSDs on
filestore with filestore_punch_hole = false, alloc_size is best set to
object size in order to allow deletes and truncates and disallow zero
op.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'fs/ceph/file.c')
0 files changed, 0 insertions, 0 deletions