Whamcloud - gitweb
LU-11868 mdc: Improve xattr buffer allocations 59/34059/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 17 Jan 2019 20:26:09 +0000 (15:26 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Jan 2019 02:41:28 +0000 (02:41 +0000)
commit4f78164f8748cf8013331637ba33388e83fbd627
tree070b9d3597b4e603b04c03f27a80106e25979591
parent76965ebc257ef1a090df2b21f107739f6471a9af
LU-11868 mdc: Improve xattr buffer allocations

Many of the xattr related buffers in the mdc/mdt code are
allocated at max_easize, but they are used for normal POSIX
xattrs (primarily ACLs) and so they are guaranteed not to
exceed XATTR_SIZE_MAX.

HSM xattrs should also be less than XATTR_SIZE_MAX.

Reduce allocations to MIN(XATTR_SIZE_MAX, max_easize).

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I228486ebd79b35358baeff490d6181cefa5a4586
Reviewed-on: https://review.whamcloud.com/34059
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c