Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4581646pxu; Wed, 9 Dec 2020 23:28:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYmXpUMWsqwop2eBKc35X9NCm1+S6o/SfyJRN6sAcVB3Dk/SZVZc8xy7mkh7GlPiDNpN9z X-Received: by 2002:a17:906:e28c:: with SMTP id gg12mr5427743ejb.74.1607585307275; Wed, 09 Dec 2020 23:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607585307; cv=none; d=google.com; s=arc-20160816; b=0jK8SJ0NdDjrC5Fvn6XBVKLWKuC6H2DPz9/Bc2ZcE3DWk9lTljlei+NRogk01uIFcU sTmiVE9Q7btku3yAK9iPgjBtEcjtT8qm3BRk+e4H/6MHp+v5UGNybdFZG2kPznPW05jX pY3zq/gJiN96EExWw8FKAuTKQFOc87X/QC1qvIJjPaau2GOZiT76VTcA8vWa85unLn9z LpKENTSF0rGZ4W49hEN2gzQ9IKXpw4r1vsWUZJP/hX8LZiZ/HfNxOAiOxITP29JBvP39 a6KV8sCU20ZoDHrqeoiXjR+7SsBStTb4RumBx0mrCX1LSDIOXUwlcQWQV9FR0WU39xKd do5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=kypFKOYEqgTM1v0iFG98jpSTeYop/dzeHR1SH/FiUSw=; b=YUM53vDgUQctxI8AoXmEh8yq41ec9RiQeWLqwep1BA90MAyUYRKgB3Gdv34BmjoZbc jnHZX3fxpEF8NLzBzAGCAfu1oqk35WIPI+ajcR8rU74jBpbn9/7TsGbQ3VgWILhY8i0j ZbDLdWCoGBHJ3BfUYirBNxvaphoLNio+My556jNLzXvtmqBGeD9NjWWmwpczOPSuQLwu duNkaL/smnTMVNuE8aA8p76yS3EfIhSLt3oTdSa5mZQ1NacZW+eqr6QtwZHjyk9ji/fV Ea91MQxJTHa1cuzNhJGR+FCXgpHuYqs4Wn682mkKGkAWPf7JgMo9JNCtLkefJPpVRo0p rKLA== 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 88si2230984ede.335.2020.12.09.23.28.05; Wed, 09 Dec 2020 23:28:27 -0800 (PST) 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 S1733239AbgLJGRz (ORCPT + 99 others); Thu, 10 Dec 2020 01:17:55 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8975 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbgLJGRz (ORCPT ); Thu, 10 Dec 2020 01:17:55 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Cs3bK5Sfqzhq80; Thu, 10 Dec 2020 14:16:45 +0800 (CST) Received: from [10.174.178.154] (10.174.178.154) by smtp.huawei.com (10.3.19.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 10 Dec 2020 14:17:08 +0800 Subject: Re: [PATCH -next] fs/ntfs: fix set but not used variable 'log_page_mask' To: Anton Altaparmakov , Andrew Morton CC: "linux-ntfs-dev@lists.sourceforge.net" , LKML References: <20200312041353.19877-1-zhengzengkai@huawei.com> <94ED375C-C57C-464B-A1CA-BFB1EEF71BB2@tuxera.com> <20201209183623.b26e90de3d0aa92a72010ff0@linux-foundation.org> From: Zheng Zengkai Message-ID: <3b12e860-273e-c915-cd18-637668762107@huawei.com> Date: Thu, 10 Dec 2020 14:17:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.154] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anton and Andrew, > Hi Andrew, > > Ah, oops! Thank you and apologies. Quite right the alternative patch was even better. No need to apply this patch after all... > > Zheng, the log_page_mask variable was removed altogether so your patch no longer makes sense. > > Best regards, > > Anton > >> On 10 Dec 2020, at 02:36, Andrew Morton wrote: >> >> On Tue, 8 Dec 2020 08:24:02 +0000 Anton Altaparmakov wrote: >> >>> Can you please apply this? >>> >>> ... >>> >>>> --- a/fs/ntfs/logfile.c >>>> +++ b/fs/ntfs/logfile.c >>>> @@ -507,7 +507,7 @@ bool ntfs_check_logfile(struct inode *log_vi, RESTART_PAGE_HEADER **rp) >>>> * optimize log_page_size and log_page_bits into constants. >>>> */ >>>> log_page_bits = ntfs_ffs(log_page_size) - 1; >>>> - size &= ~(s64)(log_page_size - 1); >>>> + size &= ~(s64)(log_page_mask); >>>> /* >>>> * Ensure the log file is big enough to store at least the two restart >>>> * pages and the minimum number of log record pages. >> https://lore.kernel.org/lkml/1604821092-54631-1-git-send-email-alex.shi@linux.alibaba.com/ >> addressed this? >> It's ok, thank you all the same!