Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 180008 Details for
Bug 256678
app-emulation/open-vm-tools-0.0.20090121.142982 version bump request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch which allow clean compilatiion on kernel 2.6.28 or greater
hgfs-page.patch (text/plain), 1.28 KB, created by
John Plesmid
on 2009-01-28 20:13:09 UTC
(
hide
)
Description:
Patch which allow clean compilatiion on kernel 2.6.28 or greater
Filename:
MIME Type:
Creator:
John Plesmid
Created:
2009-01-28 20:13:09 UTC
Size:
1.28 KB
patch
obsolete
> > >Index: bora-vmsoft/hgfs/linux/page.c >=================================================================== >--- bora-vmsoft.orig/hgfs/linux/page.c >+++ bora-vmsoft/hgfs/linux/page.c >@@ -744,10 +744,16 @@ HgfsDoWriteBegin(struct page *page, > unsigned pageFrom, // IN: Starting page offset > unsigned pageTo) // IN: Ending page offset > { >+#ifndef HGFS_ENABLE_WRITEBACK >+ ASSERT(page); >+#else >+ loff_t offset; >+ loff_t currentFileSize; >+ > ASSERT(page); >-#ifdef HGFS_ENABLE_WRITEBACK >- loff_t offset = (loff_t)page->index << PAGE_CACHE_SHIFT; >- loff_t currentFileSize = compat_i_size_read(page->mapping->host); >+ >+ offset = (loff_t)page->index << PAGE_CACHE_SHIFT; >+ currentFileSize = compat_i_size_read(page->mapping->host); > > /* > * If we are doing a partial write into a new page (beyond end of >@@ -850,7 +856,15 @@ HgfsWriteBegin(struct file *file, > unsigned pageTo = pos + len; > struct page *page; > >+/* >+ * AOP_FLAG_NOFS was defined in the same changeset that >+ * grab_cache_page_write_begin() was introduced. >+ */ >+#ifdef AOP_FLAG_NOFS >+ page = grab_cache_page_write_begin(mapping, index, flags); >+#else > page = __grab_cache_page(mapping, index); >+#endif > if (page == NULL) { > return -ENOMEM; > }
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 Raw
Actions:
View
Attachments on
bug 256678
:
180007
| 180008