From 8591a1e32eb9ed0a453829146a27b6a0a745e8d0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 25 Jun 1996 21:37:53 +0000 Subject: (diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly. --- ext2fs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/inode.c') diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 68c9451e..05e7e14c 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -95,7 +95,7 @@ diskfs_cached_lookup (int inum, struct node **npp) /* Get the contents of NP off disk. */ err = read_disknode (np); - if (!diskfs_readonly && !np->dn_stat.st_gen) + if (!diskfs_check_readonly () && !np->dn_stat.st_gen) { spin_lock (&generation_lock); if (++next_generation < diskfs_mtime->seconds) -- cgit v1.2.3