summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnetfs/drop-node.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libnetfs/drop-node.c b/libnetfs/drop-node.c
index b3dd10a0..8e2019fd 100644
--- a/libnetfs/drop-node.c
+++ b/libnetfs/drop-node.c
@@ -23,26 +23,7 @@
void
netfs_drop_node (struct node *np)
{
- mode_t savemode;
-
- if (np->dn_stat.st_nlink == 0)
- {
- assert (!netfs_readonly);
-
- if (np->allocsize != 0)
- {
- np->references++;
- spin_unlock (&netfs_node_refcnt_lock);
- netfs_truncate (np, 0);
-
- netfs_nput (np);
- return;
- }
- /* How to clear? */
- }
-
fshelp_drop_transbox (&np->transbox);
-
netfs_node_norefs (np);
spin_unlock (&netfs_node_refcnt_lock);
}