summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormajianpeng <majianpeng@gmail.com>2013-05-14 20:06:46 +0800
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:45 +0900
commitac9c8379c8ddf9b710b832d4c826801085594f03 (patch)
tree69b523e528f8f02362e6c988d1f6be59307d9632
parent69a9186476ec71f48f87c34ac7ea1b015777b54c (diff)
downloadlinux-3.10-ac9c8379c8ddf9b710b832d4c826801085594f03.tar.gz
linux-3.10-ac9c8379c8ddf9b710b832d4c826801085594f03.tar.bz2
linux-3.10-ac9c8379c8ddf9b710b832d4c826801085594f03.zip
f2fs: use list_for_each_entry rather than list_for_each_entry_safe
We can do this, since now we use a global mutex, f2fs_stat_mutex to protect its list operations. Signed-off-by: Jianpeng Ma <majianpeng@gmail.com> [Jaegeuk Kim: add description] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r--fs/f2fs/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c
index 8d9943786c3..0d6c6aafb23 100644
--- a/fs/f2fs/debug.c
+++ b/fs/f2fs/debug.c
@@ -175,12 +175,12 @@ get_cache:
static int stat_show(struct seq_file *s, void *v)
{
- struct f2fs_stat_info *si, *next;
+ struct f2fs_stat_info *si;
int i = 0;
int j;
mutex_lock(&f2fs_stat_mutex);
- list_for_each_entry_safe(si, next, &f2fs_stat_list, stat_list) {
+ list_for_each_entry(si, &f2fs_stat_list, stat_list) {
char devname[BDEVNAME_SIZE];
update_general_status(si->sbi);