mmap-antirecursion-port-to-head-20090513

LICENSE IPL10
FIXES 124770

deal correctly with the structure reorg which took place
This commit is contained in:
Marc Dionne 2009-05-13 21:40:56 +00:00 committed by Derrick Brashear
parent 6ba44802ea
commit 2c0bf1c881

View File

@ -1913,7 +1913,7 @@ afs_linux_writepage_sync(struct inode *ip, struct page *pp,
return(0); return(0);
#endif #endif
} }
vcp->states |= CPageWrite; vcp->f.states |= CPageWrite;
ReleaseWriteLock(&vcp->lock); ReleaseWriteLock(&vcp->lock);
setup_uio(&tuio, &iovec, buffer, base, count, UIO_WRITE, AFS_UIOSYS); setup_uio(&tuio, &iovec, buffer, base, count, UIO_WRITE, AFS_UIOSYS);
@ -1932,7 +1932,7 @@ afs_linux_writepage_sync(struct inode *ip, struct page *pp,
} }
code = code ? -code : count - tuio.uio_resid; code = code ? -code : count - tuio.uio_resid;
vcp->states &= ~CPageWrite; vcp->f.states &= ~CPageWrite;
ReleaseWriteLock(&vcp->lock); ReleaseWriteLock(&vcp->lock);
afs_Trace4(afs_iclSetp, CM_TRACE_UPDATEPAGE, ICL_TYPE_POINTER, vcp, afs_Trace4(afs_iclSetp, CM_TRACE_UPDATEPAGE, ICL_TYPE_POINTER, vcp,