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: 1117515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="I9gxulqx"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45SR2c0kbWz9sBp for ; Tue, 18 Jun 2019 08:38:48 +1000 (AEST) 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 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