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 153023 Details for
Bug 236087
GFS2: mmap problems with distributed test cases
[?]
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]
Patch to attempt to fix the problem encountered
zero.diff (text/plain), 1.06 KB, created by
Steve Whitehouse
on 2007-04-19 16:24:34 UTC
(
hide
)
Description:
Patch to attempt to fix the problem encountered
Filename:
MIME Type:
Creator:
Steve Whitehouse
Created:
2007-04-19 16:24:34 UTC
Size:
1.06 KB
patch
obsolete
>diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c >index 90c2879..30c1562 100644 >--- a/fs/gfs2/ops_address.c >+++ b/fs/gfs2/ops_address.c >@@ -197,7 +197,19 @@ static int stuffed_readpage(struct gfs2_inode *ip, struct page *page) > void *kaddr; > int error; > >- BUG_ON(page->index); >+ /* >+ * Due to the order of unstuffing files and ->nopage(), we can be >+ * asked for a zero page in the case of a stuffed file being extended, >+ * so we need to supply one here. It doesn't happen often. >+ */ >+ if (unlikely(page->index)) { >+ kaddr = kmap_atomic(page, KM_USER0); >+ memset(kaddr, 0, PAGE_CACHE_SIZE); >+ kunmap_atomic(kaddr, KM_USER0); >+ flush_dcache_page(page); >+ SetPageUptodate(page); >+ return 0; >+ } > > error = gfs2_meta_inode_buffer(ip, &dibh); > if (error) >@@ -208,9 +220,8 @@ static int stuffed_readpage(struct gfs2_inode *ip, struct page *page) > ip->i_di.di_size); > memset(kaddr + ip->i_di.di_size, 0, PAGE_CACHE_SIZE - ip->i_di.di_size); > kunmap_atomic(kaddr, KM_USER0); >- >+ flush_dcache_page(page); > brelse(dibh); >- > SetPageUptodate(page); > > return 0;
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 236087
:
152323
| 153023 |
154462