aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c
index 28f37516c126..a03b92a0fe1d 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -206,7 +206,6 @@ int afs_prepare_write(struct file *file, struct page *page,
206 _leave(" = %d [prep]", ret); 206 _leave(" = %d [prep]", ret);
207 return ret; 207 return ret;
208 } 208 }
209 SetPageUptodate(page);
210 } 209 }
211 210
212try_again: 211try_again:
@@ -311,8 +310,8 @@ int afs_commit_write(struct file *file, struct page *page,
311 spin_unlock(&vnode->writeback_lock); 310 spin_unlock(&vnode->writeback_lock);
312 } 311 }
313 312
313 SetPageUptodate(page);
314 set_page_dirty(page); 314 set_page_dirty(page);
315
316 if (PageDirty(page)) 315 if (PageDirty(page))
317 _debug("dirtied"); 316 _debug("dirtied");
318 317