Whamcloud - gitweb
LU-16464 osp: fix off-by-one errors in oxe_can_hold() 17/49617/4
authorNikitas Angelinas <nikitas.angelinas@hpe.com>
Fri, 6 Jan 2023 19:01:52 +0000 (21:01 +0200)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jan 2023 00:36:18 +0000 (00:36 +0000)
commiteac03ca97867240b3a1b3eced666a6a7aaddf60c
tree0c567e7223e62bda1f6108afa72d2f90a9ab6342
parent7e566c6a1f9d5324718ebc7149153f3272363b9c
LU-16464 osp: fix off-by-one errors in oxe_can_hold()

There are a couple of off-by-one errors when calculating the required
buffer size in oxe_can_hold(), which can cause the xattr entry to be
reallocated unnecessarily.

HPE-bug-id: LUS-11423
Fixes: a1c5adf7f466 ("LU-14607 osp: separate buffer for large XATTR")
Change-Id: I486963066d7f8783ad64f1ea110fb73db0a8274b
Signed-off-by: Nikitas Angelinas <nikitas.angelinas@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49617
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osp/osp_object.c