The patch titled AFS: Fix afs_prepare_write() has been added to the -mm tree. Its filename is afs-fix-afs_prepare_write.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: AFS: Fix afs_prepare_write() From: David Howells <dhowells@xxxxxxxxxx> afs_prepare_write() should not mark a page up to date if it only partially fills it in, in expectation of the caller filling in the rest prior to calling commit_write(). commit_write(), however, should mark the page up to date. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/afs/write.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN fs/afs/write.c~afs-fix-afs_prepare_write fs/afs/write.c --- a/fs/afs/write.c~afs-fix-afs_prepare_write +++ a/fs/afs/write.c @@ -206,7 +206,6 @@ int afs_prepare_write(struct file *file, _leave(" = %d [prep]", ret); return ret; } - SetPageUptodate(page); } try_again: @@ -311,8 +310,8 @@ int afs_commit_write(struct file *file, spin_unlock(&vnode->writeback_lock); } + SetPageUptodate(page); set_page_dirty(page); - if (PageDirty(page)) _debug("dirtied"); _ Patches currently in -mm which might be from dhowells@xxxxxxxxxx are origin.patch afs-write-back-dirty-data-on-unmount.patch afs-fix-afs_prepare_write.patch nommu-present-backing-device-capabilities-for-mtd.patch nommu-add-support-for-direct-mapping-through-mtdconcat.patch nommu-generalise-the-handling-of-mtd-specific-superblocks.patch nommu-make-it-possible-for-romfs-to-use-mtd-devices.patch romfs-printk-format-warnings.patch af_rxrpc-af_rxrpc-depends-on-ipv4.patch af_rxrpc-make-call-state-names-available-if-config_proc_fs=n.patch remove-slab_ctor_constructor.patch afs-implement-shared-writable-mmap.patch split-usermodehelper-setup-from-execution.patch mutex-subsystem-synchro-test-module.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html