diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-31 19:18:41 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-31 19:18:41 +0100 |
commit | 9ddc4f2a1717455e50eb6fd010cda4e5f4080c42 (patch) | |
tree | e5ace664784f41c2c743a62db5d6e21d5b261e01 /libdiskfs/priv.h | |
parent | 74bfb99acf027265b8b588ea3fa15204c426f919 (diff) |
libdiskfs: Factorize code for last hard reference being released
* libdiskfs/node-lastref.c: New file
* libdiskfs/Makefile (OTHERSRCS): Add node-lastref.c
* libdiskfs/libdiskfs/node-nput.c (diskfs_nput): Replace last hard reference
code with a call to _diskfs_lastref.
* libdiskfs/node-nrele.c (diskfs_nrele): Likewise.
Diffstat (limited to 'libdiskfs/priv.h')
-rw-r--r-- | libdiskfs/priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index 2ac3c9ef..276d0931 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -96,6 +96,10 @@ void _diskfs_boot_privports (void); /* Clean routine for control port. */ void _diskfs_control_clean (void *); +/* Called when the last hard reference is released. If there are no + links, then request soft references to be dropped. */ +void _diskfs_lastref (struct node *np); + /* Number of outstanding PT_CTL ports. */ extern int _diskfs_ncontrol_ports; |