Date: Sat, 20 Aug 2011 07:00:23 GMT From: Sergey Kandaurov <pluknet@gmail.com> To: freebsd-fs@FreeBSD.org Subject: Re: kern/159930: [ufs] [panic] kernel core Message-ID: <201108200700.p7K70NDo000172@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/159930; it has been noted by GNATS. From: Sergey Kandaurov <pluknet@gmail.com> To: bug-followup@FreeBSD.org, nospam@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108200700.p7K70NDo000172>