diff options
author | Miles Bader <miles@gnu.org> | 1995-04-16 20:12:23 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-04-16 20:12:23 +0000 |
commit | ab51f364c53da905be4fc5b0622da15559a005fb (patch) | |
tree | ec658a688819351ff212fc62dfd5c4f91279388f /ext2fs | |
parent | fcd5377a5686f4363c37b43c18c0335c0b86c6bd (diff) |
Formerly pager.c.~9~
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/pager.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |