Whamcloud - gitweb
LU-16847 ldiskfs: ->fiemap replaced with ldiskfs_map_blocks. 46/51146/8
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Fri, 26 May 2023 10:15:36 +0000 (13:15 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Jul 2023 16:42:02 +0000 (16:42 +0000)
commit524c53981365abddc114efaa8f73d4b61fccf064
treed564f9a18031d75cd8da02c0cd2ff953c308ce1e
parent94b72e3478d73133c29c0e31403e7e3e96a163f4
LU-16847 ldiskfs: ->fiemap replaced with ldiskfs_map_blocks.

lets avoid hacks with data copy from fiemap buffer to kernel
space by using an ldiskfs_map_blocks directly.
It might code lots clear.

Fixes: 5cd5a49c7213 ("LU-16321 osd: Allow fiemap on kernel buffers")
HPe-bug-id: LUS-11645
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I1c527ce653b8943801e5bf56fd172a5f05e22dfc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51146
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c