All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] f2fs: no need inc dirty pages under inode lock
@ 2016-05-13  6:57 Yunlei He
  2016-05-13 17:13 ` Jaegeuk Kim
  0 siblings, 1 reply; 3+ messages in thread
From: Yunlei He @ 2016-05-13  6:57 UTC (permalink / raw)
  To: linux-f2fs-devel, jaegeuk, yuchao; +Cc: heyunlei

No need inc dirty pages under inode lock

Signed-off-by: Yunlei He <heyunlei@huawei.com>
---
 fs/f2fs/checkpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 6402e93..3da6499 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -787,9 +787,9 @@ void update_dirty_page(struct inode *inode, struct page *page)
 
 	spin_lock(&sbi->inode_lock[type]);
 	__add_dirty_inode(inode, type);
-	inode_inc_dirty_pages(inode);
 	spin_unlock(&sbi->inode_lock[type]);
 
+	inode_inc_dirty_pages(inode);
 	SetPagePrivate(page);
 	f2fs_trace_pid(page);
 }
-- 
1.9.1


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

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

end of thread, other threads:[~2016-05-16  1:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13  6:57 [PATCH] f2fs: no need inc dirty pages under inode lock Yunlei He
2016-05-13 17:13 ` Jaegeuk Kim
2016-05-16  1:50   ` He YunLei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.