mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-16 11:57:00 +00:00
Rename the write_version lock field to write_seq and get it from the core seq in the super block. We're doing this to create a relationship between a client transaction's seq and a lock's write_seq. New transactions will have a greater seq than all previously granted write locks and new write locks will have a greater seq than all open transactions. This will be used to resolve ambiguities in item merging as transaction seqs are written out of order and write locks span transactions. Signed-off-by: Zach Brown <zab@versity.com>
20 lines
800 B
C
20 lines
800 B
C
#ifndef _SCOUTFS_LOCK_SERVER_H_
|
|
#define _SCOUTFS_LOCK_SERVER_H_
|
|
|
|
int scoutfs_lock_server_recover_response(struct super_block *sb, u64 rid,
|
|
struct scoutfs_net_lock_recover *nlr);
|
|
int scoutfs_lock_server_finished_recovery(struct super_block *sb);
|
|
int scoutfs_lock_server_request(struct super_block *sb, u64 rid,
|
|
u64 net_id, struct scoutfs_net_lock *nl);
|
|
int scoutfs_lock_server_greeting(struct super_block *sb, u64 rid);
|
|
int scoutfs_lock_server_response(struct super_block *sb, u64 rid,
|
|
struct scoutfs_net_lock *nl);
|
|
int scoutfs_lock_server_farewell(struct super_block *sb, u64 rid);
|
|
|
|
int scoutfs_lock_server_setup(struct super_block *sb,
|
|
struct scoutfs_alloc *alloc,
|
|
struct scoutfs_block_writer *wri);
|
|
void scoutfs_lock_server_destroy(struct super_block *sb);
|
|
|
|
#endif
|