Whamcloud - gitweb
LU-9727 lustre: record CLOSE if OPEN was recorded 29/27929/21
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 4 Jul 2017 15:21:44 +0000 (00:21 +0900)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Feb 2018 04:26:41 +0000 (04:26 +0000)
commitafef52b9f2b5cb3af735d698883951fdd129af20
treeba36ea0788ea9ec1e59b0fdc4529fa7e315cc52a
parent21fb4d93a94ef3876051fed31c5ef0c33f484f9d
LU-9727 lustre: record CLOSE if OPEN was recorded

Record CL_CLOSE events in changelogs only if file was opened in
write mode, or if CL_OPEN was recorded.
Changelogs mask may change between open and close operations,
but this is not a big deal if we have a CL_CLOSE entry with no
matching CL_OPEN. Plus Changelogs mask may not change often.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I5984a4b07b84d84c3860b9b21abc3b19b7fd9b1a
Reviewed-on: https://review.whamcloud.com/27929
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Matthew S <matthew.sanderson@anu.edu.au>
Reviewed-by: Li Xi <lixi@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdd/mdd_object.c