All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] f2fs: Remove lock from check_valid_map
@ 2014-09-07  3:05 ` Huang Ying
  0 siblings, 0 replies; 12+ messages in thread
From: Huang Ying @ 2014-09-07  3:05 UTC (permalink / raw)
  To: Jaegeuk Kim, Changman Lee; +Cc: linux-f2fs-devel, linux-kernel, Huang Ying

Only one bit is read in check_valid_map, holding a lock to do that
doesn't help anything except decreasing performance.

Signed-off-by: Huang, Ying <ying.huang@intel.com>
---
 fs/f2fs/gc.c |    2 --
 1 file changed, 2 deletions(-)

--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -382,10 +382,8 @@ static int check_valid_map(struct f2fs_s
 	struct seg_entry *sentry;
 	int ret;
 
-	mutex_lock(&sit_i->sentry_lock);
 	sentry = get_seg_entry(sbi, segno);
 	ret = f2fs_test_bit(offset, sentry->cur_valid_map);
-	mutex_unlock(&sit_i->sentry_lock);
 	return ret;
 }
 

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

end of thread, other threads:[~2014-09-09  8:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-07  3:05 [PATCH] f2fs: Remove lock from check_valid_map Huang Ying
2014-09-07  3:05 ` Huang Ying
2014-09-07  3:38 ` [PATCH -v2] " Huang Ying
2014-09-07  3:38   ` Huang Ying
2014-09-08  3:50   ` Jaegeuk Kim
2014-09-08  3:50     ` Jaegeuk Kim
     [not found]     ` <CAC=cRTOdvOp=zBT986SqGXC2+iRxGzSgKdFYzTQjbAamYsGVsg@mail.gmail.com>
2014-09-09  5:13       ` Jaegeuk Kim
2014-09-09  5:13         ` Jaegeuk Kim
2014-09-09  5:43         ` Huang Ying
2014-09-09  5:43           ` Huang Ying
2014-09-09  7:41           ` Jaegeuk Kim
2014-09-09  8:04             ` Huang Ying

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.