From: Dmitry Zogin Date: Fri, 4 Jun 2010 14:06:24 +0000 (-0400) Subject: b=22889 OSS Kernel panic - Kernel BUG at fs/jbd/transaction.c:1155 X-Git-Tag: v1_8_3_53~9 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cff69a274b983c524f4954ba7b95b9a2e7da0d57;p=fs%2Flustre-release.git b=22889 OSS Kernel panic - Kernel BUG at fs/jbd/transaction.c:1155 extend truncate transaction to have enough blocks for last_rcvd and VBR o=andreas.dilger i=tappro i=oleg.drokin --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 1501c98..cf73765 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2897,9 +2897,9 @@ int filter_setattr_internal(struct obd_export *exp, struct dentry *dentry, if (OBD_FAIL_CHECK(OBD_FAIL_OST_SETATTR_CREDITS)) fsfilt_extend(exp->exp_obd, inode, 0, handle); - /* The truncate might have used up our transaction credits. Make - * sure we have one left for the last_rcvd update. */ - err = fsfilt_extend(exp->exp_obd, inode, 1, handle); + /* The truncate might have used up our transaction credits. Make sure + * we have two left for the last_rcvd and VBR inode version updates. */ + err = fsfilt_extend(exp->exp_obd, inode, 2, handle); rc = filter_finish_transno(exp, inode, oti, rc, sync); if (sync) { filter_cancel_cookies_cb(exp->exp_obd, 0, fcc, rc);