summaryrefslogtreecommitdiff
path: root/ext2fs/truncate.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-16 20:13:11 +0000
committerMiles Bader <miles@gnu.org>1995-04-16 20:13:11 +0000
commite06ae85fae7a468dd2707e5fc9397f4622242ece (patch)
treef3cd17464a007f92c746c5f489a1875abb16d649 /ext2fs/truncate.c
parent1c030e8c79d83594f1204ea43b789e530dfbece7 (diff)
Formerly truncate.c.~7~
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r--ext2fs/truncate.c8
1 files changed, 4 insertions, 4 deletions
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);