Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159314 Details for
Bug 245009
GFS2 - filesystem consistency error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Quick fix to rgblk_search
quick-fix.diff (text/plain), 1.42 KB, created by
Steve Whitehouse
on 2007-07-16 10:43:37 UTC
(
hide
)
Description:
Quick fix to rgblk_search
Filename:
MIME Type:
Creator:
Steve Whitehouse
Created:
2007-07-16 10:43:37 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c >index bb58e69..ce48c45 100644 >--- a/fs/gfs2/rgrp.c >+++ b/fs/gfs2/rgrp.c >@@ -867,7 +867,7 @@ static struct inode *try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked) > break; > goal = rgblk_search(rgd, goal, GFS2_BLKST_UNLINKED, > GFS2_BLKST_UNLINKED); >- if (goal == 0) >+ if (goal == BFITNOENT) > break; > no_addr = goal + rgd->rd_data0; > goal++; >@@ -1316,7 +1316,7 @@ static u32 rgblk_search(struct gfs2_rgrpd *rgd, u32 goal, > bi->bi_len, blk, new_state); > } > >- return (blk == BFITNOENT) ? 0 : (bi->bi_start * GFS2_NBBY) + blk; >+ return (blk == BFITNOENT) ? blk : (bi->bi_start * GFS2_NBBY) + blk; > } > > /** >@@ -1396,6 +1396,7 @@ u64 gfs2_alloc_data(struct gfs2_inode *ip) > goal = rgd->rd_last_alloc_data; > > blk = rgblk_search(rgd, goal, GFS2_BLKST_FREE, GFS2_BLKST_USED); >+ BUG_ON(blk == BFITNOENT); > rgd->rd_last_alloc_data = blk; > > block = rgd->rd_data0 + blk; >@@ -1440,6 +1441,7 @@ u64 gfs2_alloc_meta(struct gfs2_inode *ip) > goal = rgd->rd_last_alloc_meta; > > blk = rgblk_search(rgd, goal, GFS2_BLKST_FREE, GFS2_BLKST_USED); >+ BUG_ON(blk == BFITNOENT); > rgd->rd_last_alloc_meta = blk; > > block = rgd->rd_data0 + blk; >@@ -1481,6 +1483,7 @@ u64 gfs2_alloc_di(struct gfs2_inode *dip, u64 *generation) > > blk = rgblk_search(rgd, rgd->rd_last_alloc_meta, > GFS2_BLKST_FREE, GFS2_BLKST_DINODE); >+ BUG_ON(blk == BFITNOENT); > > rgd->rd_last_alloc_meta = blk; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 245009
:
157475
| 159314 |
159621