Changeset 38943 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 5, 2011 1:51:28 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74309
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c
r38922 r38943 1551 1551 if (error != 0) 1552 1552 { 1553 cmn_err(CE_WARN, "sffs_readpages: sfprov_read() failed. error=%d bytes=% ld\n", error, bytes);1553 cmn_err(CE_WARN, "sffs_readpages: sfprov_read() failed. error=%d bytes=%u\n", error, bytes); 1554 1554 /* Get rid of all kluster pages read & bail. */ 1555 pvn_read_done(ppages, 1555 pvn_read_done(ppages, B_ERROR); 1556 1556 return (error); 1557 1557 } … … 1700 1700 { 1701 1701 /* 1702 * We don't support PROT_WRITE mmaps. Just pretend we're done writing back1703 * to the disk while unmounting/closing the node and discarding the mappedpages.1702 * This would not get invoked i.e. via pvn_vplist_dirty() since we don't support 1703 * PROT_WRITE mmaps and therefore will not have dirty pages. 1704 1704 */ 1705 1705 pvn_write_done(ppage, B_INVAL | B_ERROR | B_FORCE); … … 1809 1809 ) 1810 1810 { 1811 sfnode_t *node = VN2SFN(dvp);1812 uint64_t npages = btopr(len);1813 1814 1811 if (dvp->v_flag & VNOMAP) 1815 1812 return (ENOSYS); 1816 1817 ASSERT(node);1818 1813 return (0); 1819 1814 } … … 1837 1832 ) 1838 1833 { 1839 sfnode_t *node = VN2SFN(dvp);1840 uint64_t npages = btopr(len);1841 1842 1834 if (dvp->v_flag & VNOMAP) 1843 1835 return (ENOSYS); 1844 1845 1836 return (0); 1846 1837 } … … 2026 2017 /* We're fine with releasing the vnode lock here as we should be covered by the sffs_lock */ 2027 2018 mutex_exit(&vp->v_lock); 2019 /* We won't have any dirty pages, this will just invalidate (destroy) the pages and move it to the cachelist. */ 2028 2020 pvn_vplist_dirty(vp, 0 /* offset */, sffs_discardpage, B_INVAL, cr); 2029 2021 mutex_enter(&vp->v_lock);
Note:
See TracChangeset
for help on using the changeset viewer.