Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2722747ybt; Tue, 16 Jun 2020 13:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbqCiUZ+sFl4uTmF48ZSBb5DxPvhM9HxQSKK8xt4scS6irfjOx/31+CJBBmMRm5pibdzt9 X-Received: by 2002:a17:906:d923:: with SMTP id rn3mr4444671ejb.261.1592338941364; Tue, 16 Jun 2020 13:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592338941; cv=none; d=google.com; s=arc-20160816; b=UFS5r34Uaa1r96vezH7GcparoqZRU+ry9VVJNdfRi25Keljah65DdPIv/0kSZkVVq4 3ubXXBwx7ufAYNrVf6x/oTjeUQFYZbJUhu64pbrIUIKRlQGa0xRreH+UAR04rukdbH/m 5zGip68iU7OmXZEDrtfLwTRl1g3kyD/AaxbOIOA+H+GwmXc7JHqimnYjvkp8YND4BVDH E152xIT+2N40IB2MwUq1H54S1mLtGsrUb21yzHXGFZOqiUSBRLLSJZ0nOd29ImI0qsTG hrGvJGg+xEnR4nhzPFHtTZ5uQZ4MfRhiEpSVa44WTVIiBFkdqRzMHrJcc6bZCW6Vagii CXXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fn4EkDtyCwWOYjkj5abb0ivOrfVPzRJ74WkGvYptq6M=; b=SxL/RO+QKIBiH4YvleoE9VhfTX4uXVwl5gNlK25PXLckloYxYTlzgmIXdREfl12QVz 3eTMODGXBjQ9VjYc00LV+9DqDIkuDjpiQMP2Iylwk1snZBn0lZsXYr4Foru5E9cFtO5X qLRg69NunyPYuvT++/NzTG1/OPkzmIinnVWgJXlToNN9JuZNJwWREbDCmQKD1aTEkXsH OkUcQa4y86Sd/T/r3yeC5PCP4ilIDzNFoy6VgQ7RlwvupqSsetzKYWw1PowjVwrelP5N T2nPmeHriZyZEQ3fAvZXwdrFw+iob5J+kv6WBHfA6f1xEESxtscsj6jSPcjSjuScRJ99 GCMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="dg/HgUWf"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si11737471ejx.646.2020.06.16.13.21.48; Tue, 16 Jun 2020 13:22:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="dg/HgUWf"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731730AbgFPUVl (ORCPT + 99 others); Tue, 16 Jun 2020 16:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgFPUVl (ORCPT ); Tue, 16 Jun 2020 16:21:41 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC92C061573; Tue, 16 Jun 2020 13:21:41 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id c12so16579788qtq.11; Tue, 16 Jun 2020 13:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=fn4EkDtyCwWOYjkj5abb0ivOrfVPzRJ74WkGvYptq6M=; b=dg/HgUWfWS+M4LYIXTdMrGl3x3ZRCXBAitiRGyBsR/f//oA0ExU5pFXfOj5RutZfPo eKtzh4Lj8nDNTmhzIPK+EevDMuqxYgCckV1AIRXbnODOOOvMqrMAUo7VceZ86IDGmZGF bOip7xlLpxKsZSanlH9iesa0jpyFMaeM94CRD+F8E7K/7VXU4GOIFgQmL6Uyxys2aSVm wwAQxoXNACyomKG9viuY/h2q0DEdPoe0wrHR4OebvwXqgg+CkCBAoaY8BKqhAXsFFN4B hIzjT0oO2mjsaGEucqtfy7vOx7/itxVxyQYfYa6GDlbpawx55bbdKjSiLMypeKtMoixV KI7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fn4EkDtyCwWOYjkj5abb0ivOrfVPzRJ74WkGvYptq6M=; b=VyDhH8OVwfSizaQ2SGlj1w3qHowfPjvuiAPAk/W5SBRuxjQ9xM1bpXseANfg7EamBA 7V0MFYujQ/zlzSjo9uERX1hdg6jFtA4Jyq6v9+rfbYK2Wm3vYY37WVrfWp7HXBw6cUI0 AJJijN+duWHQGQRr7XBR/IMEleFqC/7nhdf8ONIRQnlpbBElhKnJvIAOeleph2oUsW8U eaIZRFkUNR8WHVM9GeAqo6eKk8CvVn8yGyyO2rDAVZlNJPOUxws3SDVTwOTKx7469Lw/ ew3lZWNHYMJW8v2DCpoo5tIdTOQi6Be4GugVyk86Ld8IswrV+m6TDLnotY59HrQciiP1 E7mg== X-Gm-Message-State: AOAM530J4mHY0k7NdRfSbQHaGdd90eu+Q+hzQ79IEDDe2DBAgGjxvHhL vxj8TW8w/7YYUpsd1HLJfQ== X-Received: by 2002:aed:21d7:: with SMTP id m23mr22545244qtc.342.1592338900651; Tue, 16 Jun 2020 13:21:40 -0700 (PDT) Received: from localhost (209-6-122-159.s2973.c3-0.arl-cbr1.sbo-arl.ma.cable.rcncustomer.com. [209.6.122.159]) by smtp.gmail.com with ESMTPSA id k20sm16401468qtu.16.2020.06.16.13.21.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2020 13:21:40 -0700 (PDT) From: Masayoshi Mizuma To: "Theodore Ts'o" , Andreas Dilger , Alexander Viro Cc: Masayoshi Mizuma , Masayoshi Mizuma , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH] fs: i_version mntopt gets visible through /proc/mounts Date: Tue, 16 Jun 2020 16:21:23 -0400 Message-Id: <20200616202123.12656-1-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Masayoshi Mizuma /proc/mounts doesn't show 'i_version' even if iversion mount option is set to XFS. iversion mount option is a VFS option, not ext4 specific option. Move the handler to show_sb_opts() so that /proc/mounts can show 'i_version' on not only ext4 but also the other filesystem. Signed-off-by: Masayoshi Mizuma --- fs/ext4/super.c | 2 -- fs/proc_namespace.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index a29e8ea1a7ab..879289de1818 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2325,8 +2325,6 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb, SEQ_OPTS_PRINT("min_batch_time=%u", sbi->s_min_batch_time); if (nodefs || sbi->s_max_batch_time != EXT4_DEF_MAX_BATCH_TIME) SEQ_OPTS_PRINT("max_batch_time=%u", sbi->s_max_batch_time); - if (sb->s_flags & SB_I_VERSION) - SEQ_OPTS_PUTS("i_version"); if (nodefs || sbi->s_stripe) SEQ_OPTS_PRINT("stripe=%lu", sbi->s_stripe); if (nodefs || EXT4_MOUNT_DATA_FLAGS & diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 3059a9394c2d..848c4afaef05 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c @@ -49,6 +49,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb) { SB_DIRSYNC, ",dirsync" }, { SB_MANDLOCK, ",mand" }, { SB_LAZYTIME, ",lazytime" }, + { SB_I_VERSION, ",i_version" }, { 0, NULL } }; const struct proc_fs_opts *fs_infop; -- 2.18.4