From fe0bf0b6d67a49a30969f922ee65f0af88a952a1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 12 Apr 2013 11:05:29 +0200 Subject: [PATCH] s3:locking:brlock: improve the comment for the brl self cleaning code Signed-off-by: Michael Adam Signed-off-by: Gregor Beck Reviewed-by: Stefan Metzmacher --- source3/locking/brlock.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 3f23961ec27c..7942b41fb6f9 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1958,9 +1958,12 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx, if (!fsp->lockdb_clean) { int orig_num_locks = br_lck->num_locks; - /* This is the first time we've accessed this. */ - /* Go through and ensure all entries exist - remove any that don't. */ - /* Makes the lockdb self cleaning at low cost. */ + /* + * This is the first time we access the byte range lock + * record with this fsp. Go through and ensure all entries + * are valid - remove any that don't. + * This makes the lockdb self cleaning at low cost. + */ if (!validate_lock_entries(&br_lck->num_locks, &br_lck->lock_data)) { -- 2.34.1