From e06ae85fae7a468dd2707e5fc9397f4622242ece Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 16 Apr 1995 20:13:11 +0000 Subject: Formerly truncate.c.~7~ --- ext2fs/truncate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext2fs/truncate.c') diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c index 92c907b2..8abffe06 100644 --- a/ext2fs/truncate.c +++ b/ext2fs/truncate.c @@ -296,11 +296,11 @@ trunc_tindirect (struct node * node, unsigned long length) static void force_delayed_copies (struct node *node, off_t length) { - spin_lock (&node2pagelock); + spin_lock (&node_to_page_lock); upi = np->dn->fileinfo; if (upi) pager_reference (upi->p); - spin_unlock (&node2pagelock); + spin_unlock (&node_to_page_lock); if (upi) { @@ -318,11 +318,11 @@ force_delayed_copies (struct node *node, off_t length) static void enable_delayed_copies (struct node *node) { - spin_lock (&node2pagelock); + spin_lock (&node_to_page_lock); upi = np->dn->fileinfo; if (upi) pager_reference (upi->p); - spin_unlock (&node2pagelock); + spin_unlock (&node_to_page_lock); if (upi) { pager_change_attributes (upi->p, MAY_CACHE, MEMORY_OBJECT_COPY_DELAY, 0); -- cgit v1.2.3