diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/super.c | 1 | ||||
-rw-r--r-- | fs/afs/write.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/afs/super.c b/fs/afs/super.c index 579af632c8e8..370cecc910db 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
@@ -47,7 +47,6 @@ struct file_system_type afs_fs_type = { | |||
47 | static const struct super_operations afs_super_ops = { | 47 | static const struct super_operations afs_super_ops = { |
48 | .statfs = afs_statfs, | 48 | .statfs = afs_statfs, |
49 | .alloc_inode = afs_alloc_inode, | 49 | .alloc_inode = afs_alloc_inode, |
50 | .drop_inode = generic_delete_inode, | ||
51 | .write_inode = afs_write_inode, | 50 | .write_inode = afs_write_inode, |
52 | .destroy_inode = afs_destroy_inode, | 51 | .destroy_inode = afs_destroy_inode, |
53 | .clear_inode = afs_clear_inode, | 52 | .clear_inode = afs_clear_inode, |
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 | ||
212 | try_again: | 211 | try_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 | ||