From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752124AbdFLBrF (ORCPT ); Sun, 11 Jun 2017 21:47:05 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:8252 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751983AbdFLBrE (ORCPT ); Sun, 11 Jun 2017 21:47:04 -0400 From: Chao Yu To: CC: , , , Chao Yu Subject: [PATCH 1/4] f2fs: fix to show injection rate in ->show_options Date: Mon, 12 Jun 2017 09:44:24 +0800 Message-ID: <20170612014427.40692-1-yuchao0@huawei.com> X-Mailer: git-send-email 2.13.1.388.g69e6b9b4f4a9 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.120.216.130] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.593DF20B.0123,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d495791a5b80fad8ce2e611d39341142 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If fault injection functionality is enabled, show additional injection rate in ->show_options. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 02cda00284e1..1c05763616b2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -995,7 +995,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root) seq_printf(seq, ",io_size=%uKB", F2FS_IO_SIZE_KB(sbi)); #ifdef CONFIG_F2FS_FAULT_INJECTION if (test_opt(sbi, FAULT_INJECTION)) - seq_puts(seq, ",fault_injection"); + seq_printf(seq, ",fault_injection=%u", + sbi->fault_info.inject_rate); #endif #ifdef CONFIG_FS_DAX if (test_opt(sbi, DAX)) -- 2.13.1.388.g69e6b9b4f4a9