+2011-08-31 Corinna Vinschen <corinna@vinschen.de>
+
+ * flock.cc (inode_t::unlock_and_remove_if_unused): Rename from
+ unlock_and_remove.
+
2011-08-29 Corinna Vinschen <corinna@vinschen.de>
* flock.cc (LOCK_OBJ_NAME_LEN): Change to accommodate extra lf_ver
void notused () { i_cnt = 0; }
- void unlock_and_remove ();
+ void unlock_and_remove_if_unused ();
lockf_t *get_all_locks_list ();
}
void
-inode_t::unlock_and_remove ()
+inode_t::unlock_and_remove_if_unused ()
{
UNLOCK ();
INODE_LIST_LOCK ();
lock event would be premature. */
node->del_my_locks (from == after_fork ? 0 : get_unique_id (),
from == after_exec ? NULL : get_handle ());
- node->unlock_and_remove ();
+ node->unlock_and_remove_if_unused ();
}
}
clean = new lockf_t ();
if (!clean)
{
- node->unlock_and_remove ();
+ node->unlock_and_remove_if_unused ();
set_errno (ENOLCK);
return -1;
}
myself->dwProcessId, 0);
if (!lock)
{
- node->unlock_and_remove ();
+ node->unlock_and_remove_if_unused ();
set_errno (ENOLCK);
return -1;
}
delete lock;
lock = n;
}
- node->unlock_and_remove ();
+ node->unlock_and_remove_if_unused ();
switch (error)
{
case 0: /* All is well. */