Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp693744pxx; Wed, 28 Oct 2020 14:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxFU33X/WJGH3X6v8419bbCTxJumYUOAbJgYUbFMHPwKFwv34LF/o5PaSHuQmvkEPhl6Hl X-Received: by 2002:a17:906:f247:: with SMTP id gy7mr1120785ejb.48.1603921375264; Wed, 28 Oct 2020 14:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921375; cv=none; d=google.com; s=arc-20160816; b=Tw1I3ReUXCphpkORKEwe613RlXVFid84WdL2IBewxwC/bhABLP706gHxkMNVbBv5e9 Bmpg5Om8IzZICyeMNx4s9PvOe3dMJoCjtXD7w2FFYMPyJn2z09gmfewrVRVWOVoSNNwl 2s+i4DVVMiBG63EiszV9hr4jppXJnqBTxnoOTAfur+MeH3XQlpumruS7b80+mxeBfmDJ WQOP08U2/uAcY+AAwGhvCHw4+4siMyn32XUfDABX6mHeBOx11tz0Lu59drRxlblyohHa SO/Xv5hOlW/k2PVgcDOvG2u6qTPWQtL4vbezcNOiXOXpVbzqeYhIWquMdiQzV2aexLnG n+9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :references:cc:to:from:subject:reply-to:dkim-signature; bh=uR9Z8bMBXR69RPlglBm0bN7dgJ7Q6KSE6tN4OWKsw1w=; b=sm8S8lFcjo/2qpDozy6bXzVFzE9JcULRXmHNcKSkJOi/qP3aBBKTM04IP1n7yTTa3+ M71qlrxCe0pufXw4G3pgHpuPGqQlCDPlWqRAdK2eJ4ayNyf8inUGduB9847+uvaBqlqT mD4b20f/liLmXeIk9CArTpiihDSxnf6NrIt4rgsMJGEEkjS0wrItP1Uxd1rkxv+D7tgt ttKrEuqodfL+LAZE9z8iMEgFYXhpw43be9n0t3ss6T8VFSvIcga5sUqjd85RdFZwp1H2 UwcuU9yA8SMfaV1asfuLA74gMI1gAbH7nfzhWGU3un+AN+BpNIL7jmJ2YyKXQolEYR7z gEvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V3Vnqo3W; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si533031edq.501.2020.10.28.14.42.33; Wed, 28 Oct 2020 14:42:55 -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=@redhat.com header.s=mimecast20190719 header.b=V3Vnqo3W; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgJ1VhM (ORCPT + 99 others); Wed, 28 Oct 2020 17:37:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:29209 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgJ1VhJ (ORCPT ); Wed, 28 Oct 2020 17:37:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603921027; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uR9Z8bMBXR69RPlglBm0bN7dgJ7Q6KSE6tN4OWKsw1w=; b=V3Vnqo3W69x91ljxkR0jPyDbQTKf77z01Rjeo722S5rybm68BbXSjRt4hLtkqk0R5CjeqX Wf9drefsglZ9TJk+CM7PIYTtI7T+LFyp0xIu4XDgC4yEjzLNkNgzcdSyMCMt2rxlCoEyxZ 7mDZuYjdaOTUyC58AArIf31DyQr+GdY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-146-89meDqHMPlOcnmzl5Dv72Q-1; Wed, 28 Oct 2020 17:05:39 -0400 X-MC-Unique: 89meDqHMPlOcnmzl5Dv72Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 835BE64152; Wed, 28 Oct 2020 21:05:38 +0000 (UTC) Received: from [10.10.112.242] (ovpn-112-242.rdu2.redhat.com [10.10.112.242]) by smtp.corp.redhat.com (Postfix) with ESMTP id EEFA25C1D0; Wed, 28 Oct 2020 21:05:37 +0000 (UTC) Reply-To: tasleson@redhat.com Subject: Re: [PATCH] buffer_io_error: Use dev_err_ratelimited From: Tony Asleson To: Andy Shevchenko Cc: Alexander Viro , Linux FS Devel , Linux Kernel Mailing List References: <20201026155730.542020-1-tasleson@redhat.com> <71148b03-d880-8113-bd91-25dadef777c7@redhat.com> Organization: Red Hat Message-ID: Date: Wed, 28 Oct 2020 16:05:37 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <71148b03-d880-8113-bd91-25dadef777c7@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/28/20 3:45 PM, Tony Asleson wrote: > On 10/26/20 5:07 PM, Andy Shevchenko wrote: >>> + dev_err_ratelimited(gendev, >>> + "Buffer I/O error, logical block %llu%s\n", >> >>> + (unsigned long long)bh->b_blocknr, msg); >> >> It's a u64 always (via sector_t), do we really need a casting? > > That's a good question, grepping around shows *many* instances of this > being done. I do agree that this doesn't seem to be needed, but maybe > there is a reason why it's done? According to this: https://www.kernel.org/doc/html/v5.9/core-api/printk-formats.html This should be left as it is, because 'sector_t' is dependent on a config option. -Tony