aboutsummaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 79cd3a64..33ab38b7 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -1267,7 +1267,10 @@ netfs_attempt_unlink (struct iouser *cred, struct node *dir,
one we just got; if so, we must give this file another link
so that when we delete the one we are asked for it doesn't go
away entirely. */
- if (np->references > 1)
+ struct references result;
+ refcounts_references (&np->refcounts, &result);
+
+ if (result.hard > 1)
{
char *newname = 0;
int n = 0;