[PATCH 1/1] JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859
[email protected] (Dave Kleikamp) Thu, 2 Jun 2005 12:29:05 -0500 (CDT)
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <[email protected]> |
JFS: kernel BUG at fs/jfs/jfs_txnmgr.c:859 add_missing_indices() must set tlck->type to tlckBTROOT when modifying a root btree root to avoid a trap in txRelease() Signed-off-by: Dave Kleikamp <[email protected]> --- commit c2731509cfb538b9b38feaf657fab2334ea45253 tree cb7ad2847067b5ba436b78077c4abc61ce736444 parent 7078253c085c037c070ca4e8bc9e9e7f18aa1e84 author Dave Kleikamp <[email protected]> Thu, 02 Jun 2005 12:18:20 -0500 committer Dave Kleikamp <[email protected]> Thu, 02 Jun 2005 12:18:20 -0500 fs/jfs/jfs_dtree.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c --- a/fs/jfs/jfs_dtree.c +++ b/fs/jfs/jfs_dtree.c @@ -2931,6 +2931,9 @@ static void add_missing_indices(struct i ASSERT(p->header.flag & BT_LEAF); tlck = txLock(tid, inode, mp, tlckDTREE | tlckENTRY); + if (BT_IS_ROOT(mp)) + tlck->type |= tlckBTROOT; + dtlck = (struct dt_lock *) &tlck->lock; stbl = DT_GETSTBL(p); ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005