]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/locking: parse_share_modes() -> parse_share_mode_data()
authorRalph Boehme <slow@samba.org>
Tue, 28 Jan 2025 04:52:59 +0000 (05:52 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 2 Apr 2025 18:05:48 +0000 (18:05 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/share_mode_lock.c

index 0bd4cbba711a2c9da942a2f4dc99042714312eec..b3dbb63c5afe1736fc3f09d3dce99c131c9ee587 100644 (file)
@@ -558,10 +558,10 @@ static NTSTATUS locking_tdb_data_store(
 }
 
 /*******************************************************************
- Get all share mode entries for a dev/inode pair.
+ Get share_mode_data for a dev/inode pair.
 ********************************************************************/
 
-static struct share_mode_data *parse_share_modes(
+static struct share_mode_data *parse_share_mode_data(
        TALLOC_CTX *mem_ctx,
        struct file_id id,
        const uint8_t *buf,
@@ -837,7 +837,7 @@ static void get_static_share_mode_data_fn(
                        return;
                }
        } else {
-               d = parse_share_modes(
+               d = parse_share_mode_data(
                        lock_ctx,
                        state->id,
                        ltdb.share_mode_data_buf,
@@ -1485,7 +1485,7 @@ static void fetch_share_mode_unlocked_parser(
        }
        state->lck->id = state->id;
 
-       state->lck->cached_data = parse_share_modes(
+       state->lck->cached_data = parse_share_mode_data(
                state->lck,
                state->id,
                ltdb.share_mode_data_buf,
@@ -1624,7 +1624,7 @@ static void fetch_share_mode_fn(
        }
        state->lck->id = state->id,
 
-       state->lck->cached_data = parse_share_modes(
+       state->lck->cached_data = parse_share_mode_data(
                state->lck,
                state->id,
                ltdb.share_mode_data_buf,
@@ -1725,7 +1725,7 @@ static void share_mode_forall_dump_fn(
                return;
        }
 
-       d = parse_share_modes(
+       d = parse_share_mode_data(
                talloc_tos(),
                fid,
                ltdb.share_mode_data_buf,