STABLE14-linux-clean-up-stupidity-20060111

get some of an inadvertant misapplied patch, and get rid of a redundant check


(cherry picked from commit 3e8b96cfc4596c3e9c6c3802c1bdca1784f86271)
This commit is contained in:
Chas Williams 2006-01-11 21:38:30 +00:00 committed by Derrick Brashear
parent 1eece0021e
commit a74a50e10a

View File

@ -1372,9 +1372,7 @@ afs_linux_writepage_sync(struct inode *ip, struct page *pp,
ip->i_size = vcp->m.Length;
ip->i_blocks = ((vcp->m.Length + 1023) >> 10) << 1;
if (!code
&& afs_stats_cmperf.cacheCurrDirtyChunks >
afs_stats_cmperf.cacheMaxDirtyChunks) {
if (!code) {
struct vrequest treq;
ObtainWriteLock(&vcp->lock, 533);
@ -1477,15 +1475,6 @@ afs_linux_updatepage(struct file *fp, struct page *pp, unsigned long offset,
ip->i_size = vcp->m.Length;
ip->i_blocks = ((vcp->m.Length + 1023) >> 10) << 1;
if (!code) {
struct vrequest treq;
ObtainWriteLock(&vcp->lock, 533);
vcp->m.Date = osi_Time(); /* set modification time */
if (!afs_InitReq(&treq, credp))
code = afs_DoPartialWrite(vcp, &treq);
ReleaseWriteLock(&vcp->lock);
}
if (!code) {
struct vrequest treq;