Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1291745pxa; Sat, 15 Aug 2020 14:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz5EB5UTO80r6JoKGKrnIbqTg3j6nsPSz1fnvw1DrSZ5AdGdvktvBb9s4NfvVdXFVpQWFJ X-Received: by 2002:a50:f386:: with SMTP id g6mr8806462edm.354.1597527376283; Sat, 15 Aug 2020 14:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597527376; cv=none; d=google.com; s=arc-20160816; b=1HTX5xs8CwZDSGuaa4CqXMz0LJOOzYY83soKCai6rjnKe/mETvU0NiHCyGulqZAFN1 hvwpSeZXbERbKc7AKn6wLYX8mi/0t+2EZZ3IBPoJROBfsvLh/5A1kglCJOe7BgC5zMaI P9AXs5H3mx8hJcHN9pjDhcRnVEworDRpsfKSdRpfuajEn7EuJxiQJf+1i4zVnb30seSW /Dgm4PJupHuDzqZji9Lrwp8+hBsV1OxukSiJwSWPmOmpFn1XuiXr0EL8rdAGilwPHY29 IypQYHqCeMyV7diUdf0/MoufUldzRE/2+C8L8+egYcfHGyiHMFFHEIHplJYC+kkxuOJD Kxog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=kIcXJJMAN+FGgkbcP86/44hhm8iD9iJnnrD56KtA5ZY=; b=CgMNj6KbcIPW13vo0pWLSaLT3NMcixhRVQfzphVv398q8C2shfEMfKV4kRX9+RyK6p 7t94UgX1/QYOZ+/1HH2/gPQX5HF704wz/V3eZhXycGG9Ro0SpD49xdHOH0at3W+xp9gj UNJqNVlXyGN+vPdIodA1YYVDHkEvYYSQoCX7Lf8NtXRibbq8SGIoXzCRf1Ax0Maix6gI TAe7H1Mw9xPyXnUK6gOBd/nUb5UYQwlht7SpdY4Z9PWj2IzJwqjd5bdbFZk9PjJKwDJo GU6d78clOM3Uq3/FHlcAHvxUo+Iz7rMrsVLUx/8WY9Dma672t1s26Q5JL/K6val1UxT5 UO9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si7897626edn.361.2020.08.15.14.35.53; Sat, 15 Aug 2020 14:36:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727961AbgHOVdd (ORCPT + 99 others); Sat, 15 Aug 2020 17:33:33 -0400 Received: from smtp.h3c.com ([60.191.123.56]:38907 "EHLO h3cspam01-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbgHOVdc (ORCPT ); Sat, 15 Aug 2020 17:33:32 -0400 Received: from h3cspam01-ex.h3c.com (localhost [127.0.0.2] (may be forged)) by h3cspam01-ex.h3c.com with ESMTP id 07FB3uNj034474; Sat, 15 Aug 2020 19:03:56 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com ([10.8.0.66]) by h3cspam01-ex.h3c.com with ESMTPS id 07FB3im8034424 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 15 Aug 2020 19:03:44 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from localhost.localdomain (10.99.212.201) by DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 15 Aug 2020 19:03:47 +0800 From: Xianting Tian To: , CC: , , Xianting Tian Subject: [PATCH] exfat: use i_blocksize() to get blocksize Date: Sat, 15 Aug 2020 18:57:07 +0800 Message-ID: <20200815105707.19701-1-tian.xianting@h3c.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.99.212.201] X-ClientProxiedBy: BJSMTP02-EX.srv.huawei-3com.com (10.63.20.133) To DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) X-DNSRBL: X-MAIL: h3cspam01-ex.h3c.com 07FB3im8034424 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We alreday has the interface i_blocksize() to get blocksize, so use it. Signed-off-by: Xianting Tian --- fs/exfat/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/file.c b/fs/exfat/file.c index a6a063830..163b599db 100644 --- a/fs/exfat/file.c +++ b/fs/exfat/file.c @@ -226,7 +226,7 @@ void exfat_truncate(struct inode *inode, loff_t size) { struct super_block *sb = inode->i_sb; struct exfat_sb_info *sbi = EXFAT_SB(sb); - unsigned int blocksize = 1 << inode->i_blkbits; + unsigned int blocksize = i_blocksize(inode); loff_t aligned_size; int err; -- 2.17.1