From mboxrd@z Thu Jan 1 00:00:00 1970 From: majianpeng Subject: [PATCH][Trivial] f2fs: Use list_for_each_entry rather than list_for_each_entry_safe. Date: Tue, 14 May 2013 20:06:46 +0800 Message-ID: <519228D6.4070504@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-fsdevel , linux-f2fs-devel@lists.sourceforge.net To: jaegeuk.kim@samsung.com Return-path: Received: from mail-pa0-f43.google.com ([209.85.220.43]:53314 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756288Ab3ENMGz (ORCPT ); Tue, 14 May 2013 08:06:55 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz10so461774pad.2 for ; Tue, 14 May 2013 05:06:54 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Jianpeng Ma --- fs/f2fs/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 8d99437..0d6c6aa 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); -- 1.8.3.rc1.44.gb387c77