kern/159930: [ufs] [panic] kernel core

Sergey Kandaurov pluknet at gmail.com
Sat Aug 20 07:00:24 UTC 2011


The following reply was made to PR kern/159930; it has been noted by GNATS.

From: Sergey Kandaurov <pluknet at gmail.com>
To: bug-followup at FreeBSD.org, nospam at ofloo.net
Cc:  
Subject: Re: kern/159930: [ufs] [panic] kernel core
Date: Sat, 20 Aug 2011 10:58:29 +0400

 Do you use "options QUOTA" ?
 How often do you experience this crash?
 Can you show the exact way to reproduce it?
 Can you check if the following patch helps you?
 Thanks.
 
 --- sys/ufs/ffs/ffs_inode.c      2010-06-14 06:09:06.000000000 +0400
 +++ sys/ufs/ffs/ffs_inode.c 2010-12-09 15:25:28.000000000 +0300
 @@ -215,7 +215,7 @@
                         osize = ip->i_din2->di_extsize;
                         ip->i_din2->di_blocks -= extblocks;
  #ifdef QUOTA
 -                       (void) chkdq(ip, -extblocks, NOCRED, 0);
 +                       (void) chkdq(ip, -extblocks, NOCRED, FORCE);
  #endif
                         vinvalbuf(vp, V_ALT, 0, 0);
                         ffs_pages_remove(vp,
 @@ -290,7 +290,7 @@
                         UFS_UNLOCK(ump);
                 } else {
  #ifdef QUOTA
 -                       (void) chkdq(ip, -datablocks, NOCRED, 0);
 +                       (void) chkdq(ip, -datablocks, NOCRED, FORCE);
  #endif
                         softdep_setup_freeblocks(ip, length, needextclean ?
                             IO_EXT | IO_NORMAL : IO_NORMAL);
 @@ -526,7 +526,7 @@
                 DIP_SET(ip, i_blocks, 0);
         ip->i_flag |= IN_CHANGE;
  #ifdef QUOTA
 -       (void) chkdq(ip, -blocksreleased, NOCRED, 0);
 +       (void) chkdq(ip, -blocksreleased, NOCRED, FORCE);
  #endif
         return (allerror);
  }
 
 -- 
 wbr,
 pluknet


More information about the freebsd-fs mailing list