From ab51f364c53da905be4fc5b0622da15559a005fb Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 16 Apr 1995 20:12:23 +0000 Subject: Formerly pager.c.~9~ --- ext2fs/pager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ext2fs/pager.c') diff --git a/ext2fs/pager.c b/ext2fs/pager.c index d62731d3..c22a21c1 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -56,12 +56,12 @@ find_address (struct user_pager_info *upi, error_t err; struct node *np = upi->np; - rwlock_reader_lock (&np->dn->allocptrlock); - *nplock = &np->dn->allocptrlock; + rwlock_reader_lock (&np->dn->alloc_lock); + *nplock = &np->dn->alloc_lock; if (offset >= np->allocsize) { - rwlock_reader_unlock (&np->dn->allocptrlock); + rwlock_reader_unlock (&np->dn->alloc_lock); return EIO; } @@ -166,14 +166,14 @@ pager_unlock_page (struct user_pager_info *pager, struct node *np = pager->np; struct disknode *dn = np->dn; - rwlock_writer_lock (&dn->allocptrlock); + rwlock_writer_lock (&dn->alloc_lock); err = diskfs_catch_exception (); if (!err) err = ext2_getblk(np, address / block_size, 1, &buf); diskfs_end_catch_exception (); - rwlock_writer_unlock (&dn->allocptrlock); + rwlock_writer_unlock (&dn->alloc_lock); return err; } -- cgit v1.2.3