Whamcloud - gitweb
LU-11956 mdd: do not reset original lu_buf.lb_len 29/37029/2
authorLi Dongyang <dongyangli@ddn.com>
Thu, 27 Jun 2019 03:25:45 +0000 (13:25 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 23:43:50 +0000 (23:43 +0000)
commit9ba87725d1395dc729db7c90f72145e3a339f9c0
tree2f8e0ad80e60f794f56b583ef8f1b0f2d6110492
parentef9d21b694f5d8ff3ac3e6bcac128d7d929021bc
LU-11956 mdd: do not reset original lu_buf.lb_len

In mdd_iterate_xattrs(), we are resetting the xbuf.lb_len
to a smaller value returned by linkea_overflow_shrink().

If that's the last xattr we gonna process, we could deduct
less than originally allocated size from obd_memory stats,
failing the memleak check later.

Lustre-change: https://review.whamcloud.com/35333
Lustre-commit: 94a5bc1bcb6c6373ead5b091ff5915dfe452377b

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I6175a91c61ceb0e37ab889d0cfd904f4993ab5cc
Reviewed-on: https://review.whamcloud.com/37029
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdd/mdd_dir.c