From 14853c825cbe3b9eb89c271cdb7e617900fe3b37 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Fri, 27 Oct 2023 15:01:06 -0400 Subject: [PATCH] EX-7601 ofd: rename map_remote_to_local osd_map_remote_to_local implies some complex role, but in fact what this does is initialize the fields of the local niobuf structs to represent the requested range. This *may* be the same as a remote niobuf, but it also isn't in some cases. Name it osd_init_lnbs instead. Test-Parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I0d3b5f24e42ee8dc962437daea7cf9347ccb9059 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52861 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Artem Blagodarenko --- lustre/osd-ldiskfs/osd_io.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/osd-ldiskfs/osd_io.c b/lustre/osd-ldiskfs/osd_io.c index f2bbaa4..0da8eb7 100644 --- a/lustre/osd-ldiskfs/osd_io.c +++ b/lustre/osd-ldiskfs/osd_io.c @@ -661,8 +661,8 @@ out: RETURN(rc); } -static int osd_map_remote_to_local(loff_t offset, ssize_t len, int *nrpages, - struct niobuf_local *lnb, int maxlnb) +static int osd_init_lnbs(loff_t offset, ssize_t len, int *nrpages, + struct niobuf_local *lnb, int maxlnb) { int rc = 0; ENTRY; @@ -866,7 +866,7 @@ static int osd_bufs_get(const struct lu_env *env, struct dt_object *dt, if (unlikely(obj->oo_destroyed)) RETURN(-ENOENT); - rc = osd_map_remote_to_local(pos, len, &npages, lnb, maxlnb); + rc = osd_init_lnbs(pos, len, &npages, lnb, maxlnb); if (rc) RETURN(rc); -- 1.8.3.1