__set_page_dirty_buffers() is emitting warnings when it refuses to set
dirty a non-uptodate buffer against a partially-mapped page.
All we want to do in there is to move the page back onto
mapping->dirty_pages, without altering the state of its buffers.
=====================================
--- 2.5.18/fs/ext3/inode.c~ext3-set_page_dirty Sun May 26 12:37:43 2002
+++ 2.5.18-akpm/fs/ext3/inode.c Sun May 26 12:37:43 2002
@@ -1327,7 +1327,13 @@ static int ext3_writepage(struct page *p
out_fail:
unlock_kernel();
- set_page_dirty(page);
+
+ /*
+ * We have to fail this writepage to avoid cross-fs transactions.
+ * Put the page back on mapping->dirty_pages, but leave its buffer's
+ * dirty state as-is.
+ */
+ __set_page_dirty_nobuffers(page);
unlock_page(page);
return ret;
}
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/