Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs skip the assertions about page-locking when allo...



details:   https://anonhg.NetBSD.org/src/rev/dcafaaa09a56
branches:  trunk
changeset: 936339:dcafaaa09a56
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 26 00:20:13 2020 +0000

description:
skip the assertions about page-locking when allocating to the extattr bmap,
since extattrs do not use the page cache.

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4b6b9f79ef1a -r dcafaaa09a56 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Sat Jul 25 23:38:48 2020 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Sun Jul 26 00:20:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.167 2020/04/18 19:18:34 christos Exp $ */
+/*     $NetBSD: ffs_alloc.c,v 1.168 2020/07/26 00:20:13 chs Exp $      */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.167 2020/04/18 19:18:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.168 2020/07/26 00:20:13 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -204,7 +204,7 @@
         */
 
        struct vnode *vp = ITOV(ip);
-       if (vp->v_type == VREG &&
+       if (vp->v_type == VREG && (flags & IO_EXT) == 0 &&
            ffs_lblktosize(fs, (voff_t)lbn) < round_page(vp->v_size) &&
            ((vp->v_vflag & VV_MAPPED) != 0 || (size & PAGE_MASK) != 0 ||
             ffs_blkoff(fs, size) != 0)) {



Home | Main Index | Thread Index | Old Index