linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] shmem: call set_page_dirty() with locked page
@ 2009-07-14  9:29 Wu Fengguang
  2009-07-14 15:33 ` Américo Wang
  2009-07-14 18:24 ` Hugh Dickins
  0 siblings, 2 replies; 10+ messages in thread
From: Wu Fengguang @ 2009-07-14  9:29 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Hugh Dickins, LKML, linux-fsdevel

Here set_page_dirty() can be moved into the page lock.

CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
 mm/shmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux.orig/mm/shmem.c
+++ linux/mm/shmem.c
@@ -1630,8 +1630,8 @@ shmem_write_end(struct file *file, struc
 	if (pos + copied > inode->i_size)
 		i_size_write(inode, pos + copied);
 
-	unlock_page(page);
 	set_page_dirty(page);
+	unlock_page(page);
 	page_cache_release(page);
 
 	return copied;

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-07-16  2:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14  9:29 [PATCH] shmem: call set_page_dirty() with locked page Wu Fengguang
2009-07-14 15:33 ` Américo Wang
2009-07-16  2:12   ` Wu Fengguang
2009-07-14 18:24 ` Hugh Dickins
2009-07-15 11:10   ` Wu Fengguang
2009-07-15 11:17     ` Wu Fengguang
2009-07-15 13:18     ` Hugh Dickins
2009-07-15 14:04       ` Wu Fengguang
2009-07-15 14:22         ` Hugh Dickins
2009-07-15 14:28           ` Wu Fengguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).