s3:locking:brlock: improve the comment for the brl self cleaning code
authorMichael Adam <obnox@samba.org>
Fri, 12 Apr 2013 09:05:29 +0000 (11:05 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 18 Apr 2013 11:15:12 +0000 (13:15 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/brlock.c

index 3f23961ec27ca6dda18643ff203046ab1de85b2b..7942b41fb6f9326a489760f5d39b0982e0b3f649 100644 (file)
@@ -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)) {