From patchwork Mon Jun 17 22:38:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 11000637 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8980D13AF for ; Mon, 17 Jun 2019 22:38:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 763F0289D7 for ; Mon, 17 Jun 2019 22:38:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A81E289DA; Mon, 17 Jun 2019 22:38:48 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 11584289D7 for ; Mon, 17 Jun 2019 22:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726095AbfFQWir (ORCPT ); Mon, 17 Jun 2019 18:38:47 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35832 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfFQWir (ORCPT ); Mon, 17 Jun 2019 18:38:47 -0400 Received: by mail-pf1-f194.google.com with SMTP id d126so6436431pfd.2 for ; Mon, 17 Jun 2019 15:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pjiZXEZ4EwnxxNost5O//yy7iV5QE5TEsGkBJ1niPX8=; b=I9gxulqxafE8lnd9FoTZeOoleaToE97ezPuAl63Hy4RjPGNih3xmjrcJNrGV+87tep Frdtz52jsiBa99VVx9wcL6e36fqpuG8tqR9iQJn4YR7QcqZceOQUGmpzC1cSzgb5vdBx aUrzm1N+GtDkNjUzidQFpvqIa/3KDR3HyxDM+djnlMlEC+9cmml8ID92Ti2OcKjT4HWQ Fu0AuTWscHkHWS804AC1J0LqN228MEVWMKNYENL27ghje9+X2TrXqcWKBUQW1E69YpcX SBmjy71TS8aCFJJS6+AwNq3w0jJf31AqJmB+6pDLjkUmJHH6vMnTHVLhNjpRJmMtioNX fBCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pjiZXEZ4EwnxxNost5O//yy7iV5QE5TEsGkBJ1niPX8=; b=TVml4/pUxZo8F1NTkdhn8QaF6robyySad6cmmnIGhVrXy/ubfoupEbUvfzElajTQBq /diWZAQmpQMtvliVvM4UoBtiviuUUVjlc5YKRrJt7bSG0DhZsTSWtsMn+W4WxgHNZAd6 ehufnqN9r0o+8mwf3HLb/aLswFcSE92OnTYc4kA7aB/lSzNVhkVypcj8fyp+7QGXmtJY sk7/tNZKSDl2jhBPmjpVCmGKiHVUwWrEPirEvnbz9j8P/3mZj8kDt/KLTvtO6H3Mj8Ad EtybeTrom90MlQflipaE/jVLhL6c1vxeHvp+aoGN1kJfINp7G/Wx1YkaGVpXQgHevG35 bqvw== X-Gm-Message-State: APjAAAVDELWRDc/Vat1W46H+govyQNgj/rGpVe0b0u/uobFZNTq+Vo7c ddMpqtpexPsGzEyFkOWwHx4ZrrN74gcYZrKEsq+nO0kP X-Google-Smtp-Source: APXvYqy1cbDQaEVXEawhSlShj1t9Sx1jsgsGKX6419oTqJZLkJMjCmTOVOsBHI1kbxommYZ/ZfEJEp2U9a+ErbWCXQ8= X-Received: by 2002:a17:90a:2385:: with SMTP id g5mr1604032pje.12.1560811126418; Mon, 17 Jun 2019 15:38:46 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Mon, 17 Jun 2019 17:38:35 -0500 Message-ID: Subject: [PATCH][SMB3] if max_credits is specified on mount then display it in /proc/mounts To: CIFS Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If "max_credits" is overridden from its default by specifying it on the smb3 mount then display it in /proc/mounts Signed-off-by: Steve French --- fs/cifs/cifsfs.c | 5 +++++ 1 file changed, 5 insertions(+) From e35ae1bd6881529e1620e896640116f61a37cf99 Mon Sep 17 00:00:00 2001 From: Steve French Date: Mon, 17 Jun 2019 17:34:57 -0500 Subject: [PATCH] smb3: if max_credits is specified then display it in /proc/mounts If "max_credits" is overridden from its default by specifying it on the smb3 mount then display it in /proc/mounts Signed-off-by: Steve French --- fs/cifs/cifsfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index d06edebf3a73..786e07754107 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -554,6 +554,11 @@ cifs_show_options(struct seq_file *s, struct dentry *root) seq_printf(s, ",bsize=%u", cifs_sb->bsize); seq_printf(s, ",echo_interval=%lu", tcon->ses->server->echo_interval / HZ); + + /* Only display max_credits if it was overridden on mount */ + if (tcon->ses->server->max_credits != SMB2_MAX_CREDITS_AVAILABLE) + seq_printf(s, ",max_credits=%u", tcon->ses->server->max_credits); + if (tcon->snapshot_time) seq_printf(s, ",snapshot=%llu", tcon->snapshot_time); if (tcon->handle_timeout) -- 2.20.1