summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c2
1 files changed, 1 insertions, 1 deletions
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)