summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-04-12 11:05:29 +0200
committerMichael Adam <obnox@samba.org>2013-04-18 13:15:12 +0200
commitfe0bf0b6d67a49a30969f922ee65f0af88a952a1 (patch)
tree8e3c2bcf153c27a71321151d7710919c17f73c75
parent02cc5a5c6a6b6b2b796abe573a671853d945b22f (diff)
downloadsamba-fe0bf0b6d67a49a30969f922ee65f0af88a952a1.tar.gz
s3:locking:brlock: improve the comment for the brl self cleaning code
Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/locking/brlock.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 3f23961ec27..7942b41fb6f 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)) {