From 9ddc4f2a1717455e50eb6fd010cda4e5f4080c42 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 31 Oct 2016 19:18:41 +0100 Subject: 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. --- libdiskfs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs/Makefile') diff --git a/libdiskfs/Makefile b/libdiskfs/Makefile index 803761d1..93c96fa6 100644 --- a/libdiskfs/Makefile +++ b/libdiskfs/Makefile @@ -40,8 +40,8 @@ IFSOCKSRCS=ifsock.c OTHERSRCS = conch-fetch.c conch-set.c dir-clear.c dir-init.c dir-renamed.c \ extern-inline.c \ node-create.c node-drop.c node-make.c node-rdwr.c node-update.c \ - node-nref.c node-nput.c node-nrele.c node-nrefl.c node-nputl.c \ - node-nrelel.c node-cache.c \ + node-nref.c node-nput.c node-nrele.c node-lastref.c node-nrefl.c \ + node-nputl.c node-nrelel.c node-cache.c \ peropen-make.c peropen-rele.c protid-make.c protid-rele.c \ init-init.c init-startup.c init-first.c init-main.c \ rdwr-internal.c boot-start.c demuxer.c node-times.c shutdown.c \ -- cgit v1.2.3