Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1631682pxb; Thu, 4 Mar 2021 17:00:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzADgzbmJaOznUk0o4iQat/PhrjV+70WJFC1vufH3uhc5wZoB+QtJA8ErVs6DEm1aeOFj6w X-Received: by 2002:a05:6638:f11:: with SMTP id h17mr7142771jas.67.1614906037247; Thu, 04 Mar 2021 17:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906037; cv=none; d=google.com; s=arc-20160816; b=Q0MxY3BQyVsbHPAePjA9r8zI4OySmFhPNdPBqLdcmXloQyry7VIn3SV6DQIrvyiOVx oD2JrE1AHAmEW0os6rJflnof+chnL1suazyBG2jKaB6k94bZ4yZr+wpfTulHw73UsHpq 9EVCRsDnFNU18ixNNqmsjy0538QjOa20O1toWufPV3nWkN6R8vgVipuEQgUh80Hwntjs whpCyGF69JbWBhJhhcw2XeHzx5fB7nT1M7HQARHknB48glfFVzxbWhozzaEiwvSK6zr2 Z+YzKgctOUsi1vcSBRnKoJKa2dEwEGeEG4nnrG9xEQY6byv14IM5csDF2rpIjbIppo8W 9FNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=NwyGpvNGMmROMlEe2c6q6n/1F7SR0fy8PurxqlTYYbk=; b=xOZtTimWTDyHgOEq+0lV0Ht0zZ6vEktFRgkKfhGwTAmW/znjb2VE5TQ5/RmQZPl/C3 SNN+chalaSU28uHzpnRvrpF3Xg5LAuPTEOq8NTCMxSPD7lgtpXtt5J6iG1p4yMhqUdg5 xR/DtYQXSbesje/XmEcWGXlvefSDaHJJ+ME0RhDP+1H4tyreEyI/EQ8UCiACjmzmvrgP +oCwCXjNXvKjD4tBvDZDfaf3eYzFILrK/ciU3V9b03fhLvl+RCFyca/Qi/nWfPJUHpqq 77sBy2izLqY1U/7xsAVGZvFea/ztCGX/Pf7dx5e0VI13+ElxAw938rq+0ELvZs+xQxKE JFyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sw/YY5Jp"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s25si820065iom.80.2021.03.04.17.00.22; Thu, 04 Mar 2021 17:00:37 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sw/YY5Jp"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231624AbhCDWYy (ORCPT + 99 others); Thu, 4 Mar 2021 17:24:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:55248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbhCDWYx (ORCPT ); Thu, 4 Mar 2021 17:24:53 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 03D6D64FF1; Thu, 4 Mar 2021 22:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614896693; bh=LRzk6rIjoAeAQJOsL8Nqck/gDIGCM8liBnPrR/UB3XY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=sw/YY5Jp0sXBd9M83p3EKhMGatcdg97Ei+UN3LNes/HowYn724oVBfNZtZrDkh4LZ Yv+tyFTCPttTyO5T6mljyRJIysk4eGLvja7lKeuiOm4qBtYLYcRbq48jt60UwRol7w JaFun2Dg7XbH9QkahG1CdzY7iNsPFtgzGlA26u7ohwOyI26SoGFlgKkU479aW0yJwE gjxqJvt+oUtUlkSvtQDcvRIHD9p45QQt5hct09cswmlq64bndGbJKlDB7IEtPIRfyB L7zaZ9PFVX9CC9+uEDnz5DVdzEDYNt849er1YdhXE0u5Wt7jeaHjHg0rg696Xaeqzb Wu7qqySOaJsoQ== Date: Thu, 4 Mar 2021 17:24:52 -0500 From: Sasha Levin To: dsterba@suse.cz, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Nikolay Borisov , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.11 54/67] btrfs: make btrfs_start_delalloc_root's nr argument a long Message-ID: References: <20210224125026.481804-1-sashal@kernel.org> <20210224125026.481804-54-sashal@kernel.org> <20210224180942.GZ1993@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210224180942.GZ1993@twin.jikos.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 07:09:42PM +0100, David Sterba wrote: >On Wed, Feb 24, 2021 at 07:50:12AM -0500, Sasha Levin wrote: >> From: Nikolay Borisov >> >> [ Upstream commit 9db4dc241e87fccd8301357d5ef908f40b50f2e3 ] >> >> It's currently u64 which gets instantly translated either to LONG_MAX >> (if U64_MAX is passed) or cast to an unsigned long (which is in fact, >> wrong because writeback_control::nr_to_write is a signed, long type). >> >> Just convert the function's argument to be long time which obviates the >> need to manually convert u64 value to a long. Adjust all call sites >> which pass U64_MAX to pass LONG_MAX. Finally ensure that in >> shrink_delalloc the u64 is converted to a long without overflowing, >> resulting in a negative number. > >This patch is a cleanup and I don't see any other patch depend on it, so >please drop it from autosel. I'll drop it, thanks! -- Thanks, Sasha