Module Name: src Committed By: hannken Date: Fri Aug 22 16:49:30 UTC 2014
Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: Use mount from argument "mp", "vp->v_mount" is not valid here. PR kern/49142 (panic in ext2fs_loadvnode mounting an ext2fs filesystem) Needs pullup to -7 To generate a diff of this commit: cvs rdiff -u -r1.183 -r1.184 src/sys/ufs/ext2fs/ext2fs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ext2fs/ext2fs_vfsops.c diff -u src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.183 src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.184 --- src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.183 Wed Jul 9 08:43:54 2014 +++ src/sys/ufs/ext2fs/ext2fs_vfsops.c Fri Aug 22 16:49:30 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_vfsops.c,v 1.183 2014/07/09 08:43:54 maxv Exp $ */ +/* $NetBSD: ext2fs_vfsops.c,v 1.184 2014/08/22 16:49:30 hannken Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1994 @@ -60,7 +60,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.183 2014/07/09 08:43:54 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.184 2014/08/22 16:49:30 hannken Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -1024,7 +1024,7 @@ ext2fs_loadvnode(struct mount *mp, struc if (++ext2gennumber < (u_long)time_second) ext2gennumber = time_second; ip->i_e2fs_gen = ext2gennumber; - if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) + if ((mp->mnt_flag & MNT_RDONLY) == 0) ip->i_flag |= IN_MODIFIED; } uvm_vnp_setsize(vp, ext2fs_size(ip));