You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[GFS2] Remove unused sync_lvb code from lock modules
This code is no longer used for anything and can be removed from the locking modules. The sync_lvb function is not required as this happens automatically with the current locking system. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
@@ -490,23 +490,6 @@ void gdlm_unhold_lvb(lm_lock_t *lock, char *lvb)
|
||||
gdlm_del_lvb(lp);
|
||||
}
|
||||
|
||||
void gdlm_sync_lvb(lm_lock_t *lock, char *lvb)
|
||||
{
|
||||
struct gdlm_lock *lp = (struct gdlm_lock *) lock;
|
||||
|
||||
if (lp->cur != DLM_LOCK_EX)
|
||||
return;
|
||||
|
||||
init_completion(&lp->ast_wait);
|
||||
set_bit(LFL_SYNC_LVB, &lp->flags);
|
||||
|
||||
lp->req = DLM_LOCK_EX;
|
||||
lp->lkf = make_flags(lp, 0, lp->cur, lp->req);
|
||||
|
||||
gdlm_do_lock(lp);
|
||||
wait_for_completion(&lp->ast_wait);
|
||||
}
|
||||
|
||||
void gdlm_submit_delayed(struct gdlm_ls *ls)
|
||||
{
|
||||
struct gdlm_lock *lp, *safe;
|
||||
|
||||
Reference in New Issue
Block a user