Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3854304pxv; Mon, 19 Jul 2021 10:18:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcwBsCNV18wE3l6yso8tvfYovffdX/0NK3exMqOisYFBKdQ82p05zpmAyzmAnR57W3/vE/ X-Received: by 2002:aa7:c1cc:: with SMTP id d12mr35899727edp.282.1626715133441; Mon, 19 Jul 2021 10:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715133; cv=none; d=google.com; s=arc-20160816; b=dGOr6T0fPwBMIPLfyqMGyPIuilFzj1YxLEhzIZrcZSN9gb0yR5+sXX1mA5hz07tA+X IkZi9L0rCz4JsRjAQTkcn9bw9ovM5UNgm1FsMYP/xNxEnCrviWcwsS4/gyflpZPdrv2n wd3APGQ+5FfSQFnP5B6BCgQQiX4ofzkdRF9d2qVx0pdGL8mDGNRblnpq6Mwp5StPagB7 P/zD5VU4AcBLSOZ8trylLhG917i4AEy6i8whDzEsxyvaFtk4gRTINZ+6ttZ37x7AoNUt 1MzJE3iPRtpx12NjA3e/JIZxII/xzM9JQDu79OceX+SlcFFJZMxdbCrI/susmhLa8oXm UnBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fo5yUT0XIWfuPt04fgfPzjX0SIam3E6RNW93af2OsFo=; b=mwXuAvGVgCOgmO+J1B5tmAD3eWLvpb0fch0KJByrMEUaRHcBkTKsKdtdgnFZqLRCSk Z1pgVmhwfa+q0r7kCVBWpP1cJNFE34ut0WgPxoajIaaJO+wg6jAW82lx18esaWpRP9k6 SVd5GxGJbPqsVb4auInOuLxV/KAUSoo4c7f324JaX80cl6IMcg1ycm3tDKiW/WZ/j4wE xCHmjNmE5YMJ3XoevFS6v7NoYxED8DN5ozgfJdXuVqkbXRIOc8dS23dWQXP2pqvQBjvY ECxjdZFrdQu7sGkw7WTy6RphS9Vpbup9/JlCDEnLUUso+BTcl5dHGDr/lHDTcp6OEyY/ 2TSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NzIRMxgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si8229834eds.445.2021.07.19.10.18.30; Mon, 19 Jul 2021 10:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=NzIRMxgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350909AbhGSQcc (ORCPT + 99 others); Mon, 19 Jul 2021 12:32:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:58058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346033AbhGSPQ5 (ORCPT ); Mon, 19 Jul 2021 11:16:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A564961222; Mon, 19 Jul 2021 15:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710233; bh=9sHeRwrUUh9yPtTPlC8N358xe2XQYAzu9ijcoIe1FJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NzIRMxgjTq6UwzsN+6402V+esRq0dHts6rgIRCyVfTxM14Y0PvpjcUWcO5vSoi4Pn 52MCeXsGmQzlNHAEmg5x5/tamX37ywgzaTC3QyfVSTHRoIovX8lhP2vXq+qER/TfSY b3BU8jWqjzJwOFcCiT1vyGdvjSV9/RAX5/vG7iMo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Marshall , Sasha Levin Subject: [PATCH 5.10 131/243] orangefs: fix orangefs df output. Date: Mon, 19 Jul 2021 16:52:40 +0200 Message-Id: <20210719144945.145343268@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Marshall [ Upstream commit 0fdec1b3c9fbb5e856a40db5993c9eaf91c74a83 ] Orangefs df output is whacky. Walt Ligon suggested this might fix it. It seems way more in line with reality now... Signed-off-by: Mike Marshall Signed-off-by: Sasha Levin --- fs/orangefs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index ee5efdc35cc1..2f2e430461b2 100644 --- a/fs/orangefs/super.c +++ b/fs/orangefs/super.c @@ -209,7 +209,7 @@ static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail; - buf->f_frsize = sb->s_blocksize; + buf->f_frsize = 0; out_op_release: op_release(new_op); -- 2.30.2