From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3625415B116; Tue, 9 Jul 2024 11:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720523990; cv=none; b=g6PIO4M7hdcBgVtHRfho/HC7x4PhdQRjHad0l/8dWpFOO8uYfNmLsR76ZL0pz9g09icT+6r2xb/n8RpIvG4lPGJNTERnbfQ29BamHU9LECi5P+aTSYEYyXO0fmt+B9qPl97JxXqgRp/Ja3djRqrYwRTYpeojwziYEAQ441mw1jE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720523990; c=relaxed/simple; bh=GBdf7gsXI/J/tlkDnqZgJfaLZwg8UeyOQKv1oBzT2JU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JKHUlTHe3Ftac2kyKABIlj3RQvnZanUagQnHDYSvguPwfxrsqwYx2uwHu/ZZ4uEwnIyqNLSK+05iZG6+IDBNvDPXzjjYal2N/Kv7MlQbPFjtkNfsBQIX7yk90RQt6RXL5Rovt6MKzbx13IdYlvusKznOlosiyZp5feAo2LChTUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 4A43168BEB; Tue, 9 Jul 2024 13:19:46 +0200 (CEST) Date: Tue, 9 Jul 2024 13:19:46 +0200 From: Christoph Hellwig To: Dave Chinner Cc: Christoph Hellwig , John Garry , chandan.babu@oracle.com, djwong@kernel.org, dchinner@redhat.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, catherine.hoang@oracle.com, martin.petersen@oracle.com Subject: Re: [PATCH v2 10/13] xfs: Unmap blocks according to forcealign Message-ID: <20240709111946.GA5130@lst.de> References: <20240705162450.3481169-1-john.g.garry@oracle.com> <20240705162450.3481169-11-john.g.garry@oracle.com> <20240706075858.GC15212@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Jul 09, 2024 at 07:57:22PM +1000, Dave Chinner wrote: > No code should be doing "if (forcealign) ... else if (realtime) ..." > branching for alignment purposes. All the code should all be > generic based on the value xfs_inode_alloc_unitsize() returns. Yes, please.