From patchwork Tue Feb 13 01:30:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10215001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A123360236 for ; Tue, 13 Feb 2018 01:31:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8321628B96 for ; Tue, 13 Feb 2018 01:31:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 768AE28E31; Tue, 13 Feb 2018 01:31:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4EAB28B96 for ; Tue, 13 Feb 2018 01:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933083AbeBMBbI (ORCPT ); Mon, 12 Feb 2018 20:31:08 -0500 Received: from mr11p00im-asmtp003.me.com ([17.110.69.254]:26555 "EHLO mr11p00im-asmtp003.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933047AbeBMBbI (ORCPT ); Mon, 12 Feb 2018 20:31:08 -0500 Received: from process-dkim-sign-daemon.mr11p00im-asmtp003.me.com by mr11p00im-asmtp003.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P4200D00DB5XX00@mr11p00im-asmtp003.me.com> for ceph-devel@vger.kernel.org; Tue, 13 Feb 2018 01:31:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1518485467; bh=Mg6k7keL09Y2hNjNigvUih5fsIf0WY2cfNCZgbb9ZGQ=; h=From:To:Subject:Date:Message-id; b=zhQGUvrbXajKfu+I0VwIR5zAP7MhlvoQ1/EC5gGBUS5QhAmX8gH1YuP+chHxEa5Xv NR7tmwkTEE8N9oeKu69M2VQaunsYTEKSlBlYdhZvrtW6XCxUisSiVxBa5DSOdFOCdb H2ln8ohgeW/i1Eb3Q79/f3Joc7A4GPttr/rxClWdmz71uBIFIz7MaALRyxyGKcBLeU QVzEQK1VJCBKHGdtLDTc11iE9MvUwMd5Wm5CLc4W0LkaqXto+n8CJ0vLgO0i2ExtP9 EyMCQPtIo3Lu7ZkbOoa/8p0lcqUbCXMV4elNd3RsxtfAAPeDZOXxCwvXlCKuplsW9u pQEwg3eREq5nA== Received: from icloud.com ([127.0.0.1]) by mr11p00im-asmtp003.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P42005V9EVPL110@mr11p00im-asmtp003.me.com>; Tue, 13 Feb 2018 01:31:05 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-12_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1802130015 From: Chengguang Xu To: idryomov@gmail.com Cc: zyan@redhat.com, ceph-devel@vger.kernel.org, Chengguang Xu Subject: [PATCH] ceph: use seq_show_option for string type options Date: Tue, 13 Feb 2018 09:30:59 +0800 Message-id: <1518485459-199037-1-git-send-email-cgxu519@icloud.com> X-Mailer: git-send-email 1.8.3.1 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Using seq_show_option to replace seq_printf for string type options. Signed-off-by: Chengguang Xu --- fs/ceph/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ceph/super.c b/fs/ceph/super.c index a62d2a9..d8a33ad 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -512,7 +512,7 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root) seq_puts(m, ",nodcache"); if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { if (fsopt->fscache_uniq) - seq_printf(m, ",fsc=%s", fsopt->fscache_uniq); + seq_show_option(m, "fsc", fsopt->fscache_uniq); else seq_puts(m, ",fsc"); } @@ -527,7 +527,7 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root) #endif if (fsopt->mds_namespace) - seq_printf(m, ",mds_namespace=%s", fsopt->mds_namespace); + seq_show_option(m, "mds_namespace", fsopt->mds_namespace); if (fsopt->wsize) seq_printf(m, ",wsize=%d", fsopt->wsize); if (fsopt->rsize != CEPH_MAX_READ_SIZE)