Whamcloud - gitweb
LU-11114 llite: Update mdc and lite stats on open|creat 48/36948/7
authorOlaf Faaland <faaland1@llnl.gov>
Tue, 26 Nov 2019 23:20:11 +0000 (15:20 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 1 Feb 2020 08:10:33 +0000 (08:10 +0000)
commit4b8518ee4fa542f45fcdaeaec580d858dfcaf137
treed803aab29f9372d6ffc4d57673474dac17289095
parentdbbcf61d2bdcf62740c1d5c8debaeb6afdfc2261
LU-11114 llite: Update mdc and lite stats on open|creat

Increment "create" counter in mdc/<instance>/md_stats, and
"mknod" counter in llite/<instance>stats when an open with
the CREAT flag results in a newly created file.

The mknod counter is chosen for consistency with
patch http://review.whamcloud.com/20246
 "LU-8150 mdt: Track open+create as mknod"
but the mdc counter set does not include mknod.

Change-Id: Ib32d828dac35924b929f44f161cff13c99810540
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-on: https://review.whamcloud.com/36948
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/namei.c
lustre/mdc/mdc_locks.c