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 161356 Details for
Bug 252191
GFS2: More problems unstuffing journaled files
[?]
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]
The updated patch
for-bob.diff (text/plain), 4.48 KB, created by
Steve Whitehouse
on 2007-08-15 13:38:17 UTC
(
hide
)
Description:
The updated patch
Filename:
MIME Type:
Creator:
Steve Whitehouse
Created:
2007-08-15 13:38:17 UTC
Size:
4.48 KB
patch
obsolete
>diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c >index 00ab6c0..d0e6b42 100644 >--- a/fs/gfs2/log.c >+++ b/fs/gfs2/log.c >@@ -229,8 +229,10 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) > list_del(&bd->bd_ail_st_list); > list_del(&bd->bd_ail_gl_list); > atomic_dec(&bd->bd_gl->gl_ail_count); >- bh_ip = GFS2_I(bd->bd_bh->b_page->mapping->host); >- gfs2_meta_cache_flush(bh_ip); >+ if (bd->bd_bh->b_page->mapping) { >+ bh_ip = GFS2_I(bd->bd_bh->b_page->mapping->host); >+ gfs2_meta_cache_flush(bh_ip); >+ } > brelse(bd->bd_bh); > } > } >diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c >index 42a5f58..2f8294f 100644 >--- a/fs/gfs2/ops_address.c >+++ b/fs/gfs2/ops_address.c >@@ -616,58 +616,13 @@ static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) > return dblock; > } > >-static void discard_buffer(struct gfs2_sbd *sdp, struct buffer_head *bh) >-{ >- struct gfs2_bufdata *bd; >- >- gfs2_log_lock(sdp); >- bd = bh->b_private; >- if (bd) { >- bd->bd_bh = NULL; >- bh->b_private = NULL; >- if (!bd->bd_ail && list_empty(&bd->bd_le.le_list)) >- kmem_cache_free(gfs2_bufdata_cachep, bd); >- } >- gfs2_log_unlock(sdp); >- >- lock_buffer(bh); >- clear_buffer_dirty(bh); >- bh->b_bdev = NULL; >- clear_buffer_mapped(bh); >- clear_buffer_req(bh); >- clear_buffer_new(bh); >- clear_buffer_delay(bh); >- unlock_buffer(bh); >-} >- > static void gfs2_invalidatepage(struct page *page, unsigned long offset) > { >- struct gfs2_sbd *sdp = GFS2_SB(page->mapping->host); >- struct buffer_head *head, *bh, *next; >- unsigned int curr_off = 0; >- > BUG_ON(!PageLocked(page)); > if (offset == 0) > ClearPageChecked(page); >- if (!page_has_buffers(page)) >- return; >- >- bh = head = page_buffers(page); >- do { >- unsigned int next_off = curr_off + bh->b_size; >- next = bh->b_this_page; >- >- if (offset <= curr_off) >- discard_buffer(sdp, bh); >- >- curr_off = next_off; >- bh = next; >- } while (bh != head); >- >- if (!offset) >- try_to_release_page(page, 0); > >- return; >+ block_invalidatepage(page, offset); > } > > /** >@@ -736,59 +691,6 @@ out: > } > > /** >- * stuck_releasepage - We're stuck in gfs2_releasepage(). Print stuff out. >- * @bh: the buffer we're stuck on >- * >- */ >- >-static void stuck_releasepage(struct buffer_head *bh) >-{ >- struct inode *inode = bh->b_page->mapping->host; >- struct gfs2_sbd *sdp = inode->i_sb->s_fs_info; >- struct gfs2_bufdata *bd = bh->b_private; >- struct gfs2_glock *gl; >-static unsigned limit = 0; >- >- if (limit > 3) >- return; >- limit++; >- >- fs_warn(sdp, "stuck in gfs2_releasepage() %p\n", inode); >- fs_warn(sdp, "blkno = %llu, bh->b_count = %d\n", >- (unsigned long long)bh->b_blocknr, atomic_read(&bh->b_count)); >- fs_warn(sdp, "pinned = %u\n", buffer_pinned(bh)); >- fs_warn(sdp, "bh->b_private = %s\n", (bd) ? "!NULL" : "NULL"); >- >- if (!bd) >- return; >- >- gl = bd->bd_gl; >- >- fs_warn(sdp, "gl = (%u, %llu)\n", >- gl->gl_name.ln_type, (unsigned long long)gl->gl_name.ln_number); >- >- fs_warn(sdp, "bd_list_tr = %s, bd_le.le_list = %s\n", >- (list_empty(&bd->bd_list_tr)) ? "no" : "yes", >- (list_empty(&bd->bd_le.le_list)) ? "no" : "yes"); >- >- if (gl->gl_ops == &gfs2_inode_glops) { >- struct gfs2_inode *ip = gl->gl_object; >- unsigned int x; >- >- if (!ip) >- return; >- >- fs_warn(sdp, "ip = %llu %llu\n", >- (unsigned long long)ip->i_no_formal_ino, >- (unsigned long long)ip->i_no_addr); >- >- for (x = 0; x < GFS2_MAX_META_HEIGHT; x++) >- fs_warn(sdp, "ip->i_cache[%u] = %s\n", >- x, (ip->i_cache[x]) ? "!NULL" : "NULL"); >- } >-} >- >-/** > * gfs2_releasepage - free the metadata associated with a page > * @page: the page that's being released > * @gfp_mask: passed from Linux VFS, ignored by us >@@ -805,32 +707,22 @@ int gfs2_releasepage(struct page *page, gfp_t gfp_mask) > struct gfs2_sbd *sdp = aspace->i_sb->s_fs_info; > struct buffer_head *bh, *head; > struct gfs2_bufdata *bd; >- unsigned long t = jiffies + gfs2_tune_get(sdp, gt_stall_secs) * HZ; > > if (!page_has_buffers(page)) > goto out; > > head = bh = page_buffers(page); > do { >- while (atomic_read(&bh->b_count)) { >- if (!atomic_read(&aspace->i_writecount)) >- return 0; >- >- if (!(gfp_mask & __GFP_WAIT)) >- return 0; >- >- if (time_after_eq(jiffies, t)) { >- stuck_releasepage(bh); >- /* should we withdraw here? */ >- return 0; >- } >- >- yield(); >- } >- >+ if (atomic_read(&bh->b_count)) >+ return 0; >+ > gfs2_assert_warn(sdp, !buffer_pinned(bh)); > gfs2_assert_warn(sdp, !buffer_dirty(bh)); >+ bh = bh->b_this_page; >+ } while(bh != head); > >+ head = bh = page_buffers(page); >+ do { > gfs2_log_lock(sdp); > bd = bh->b_private; > if (bd) {
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 252191
:
161347
|
161356
|
161370
|
161376
|
161639