Whamcloud - gitweb
LU-11114 llite: Update mdc and lite stats on open|creat 58/38158/2
authorOlaf Faaland <faaland1@llnl.gov>
Tue, 26 Nov 2019 23:20:11 +0000 (15:20 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Apr 2020 17:55:40 +0000 (17:55 +0000)
commitcccd5c79c6697906c8409e867984f73d0ae8474d
tree5b6f51caa1ce983571d665046f24cc6e9cd43dc5
parentd4dd52a3a1dea9e6117512889837e245fb983556
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.

Lustre-change: https://review.whamcloud.com/36948
Lustre-commit: 4b8518ee4fa542f45fcdaeaec580d858dfcaf137

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