Whamcloud - gitweb
LU-14423 osd: recognize holes in osd_is_mapped() 04/45504/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 11 Feb 2021 14:33:01 +0000 (17:33 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 14 Nov 2021 03:09:20 +0000 (03:09 +0000)
commitb5f71a7e7528831a0a2c7d02b5bd98d68fcb1855
tree4ac6f52323b40a6fc2102a1482935ac11cfb8e78
parent29da7cba3e7b3461d895010c7f7284b9649aba52
LU-14423 osd: recognize holes in osd_is_mapped()

ldiskfs_fiemap() can return {0,0,0} for last non-allocated
region.  osd_is_mapped() should be able to recognize and
cache this state.

Lustre-change: https://review.whamcloud.com/41481
Lustre-commit: 2eaa49ef0f16798d564883b16cea9e96fad52495

Fixes: 144b5a65c1 ("LU-7132 osd-ldiskfs: speedup rewrites")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I03883038c2c0ec84754377a442c4947c7e3021a9
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-on: https://review.whamcloud.com/45504
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c