Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp9697ybf; Wed, 26 Feb 2020 07:56:18 -0800 (PST) X-Google-Smtp-Source: APXvYqycmvV5UGSCOS7nydob/WtQKZbGYmwv5JMJbhuvrqGbQ5EVi1mfGtCC64scGnFP84Aa/ccg X-Received: by 2002:aca:af09:: with SMTP id y9mr3485869oie.101.1582732578134; Wed, 26 Feb 2020 07:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582732578; cv=none; d=google.com; s=arc-20160816; b=F7ScDqmsaRWmiHbhtNF1WMp9iZHIjYJok5msDhPGvv7GxwqRq5opNYpOhYcaQAqOEx ls2K+94B91w1+UixXpigZrHMki6RqNFe/rCp2QdwNrFE6DEj43b95e6WzGsLrC6fsZGf bwvEFe9S/YWmlvqS9B5ZXPmMUyafTAnDJkWvtGnKzf3WbMb92mL2usDJBP4T5y9d5rw3 D/QJK5kh2OEhWeUxvi9emuuxxFMUFmeNB7w1TcjQsX//Q56/SeIhYgs0svWoOprH4pQC 7pr0wveUShHQqVHf7BDSOO4QpCQNibCO1ar0xh3xHeqG0c9P1eejCszzIvDwS73KOb8R AeHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Fzv0zma6qNHzEymKrEWyqTitusIASlSI8vJyXmG2rJc=; b=RJyTHL3FRjo8VnRb5bqPrSfYHi0zDBeswsO5qiZlexl/HUlQESqUD6G1/zUSMLCVCg rBHLq6NhJqnYSvC23M1GOTF2kzlFfEQU+OENT6eG/j5H2CS/Let9Sp7hAMhigUdN2xlY cOyGZ1aWa+n9YE613xXmRTmca5RVIJ5rrVd/EroVDnVRNu8UVCsNVfwAVO5CR+7zHgi/ CU6rw1KJF8pXuWbCGjZ6+vuWDNCSl1EeducZw4OY9NodSH3oqenq75TdcimyAd93v8kF 08VqO2ZOrUBmUVW9fe2S29IVF2tq21ZsCMLHeS/E4uSg1K+JlFv5NMIzpBd+pHGxpLy6 m27Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=D7H2FzbB; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si1389863oig.91.2020.02.26.07.56.06; Wed, 26 Feb 2020 07:56:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=D7H2FzbB; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbgBZPzr (ORCPT + 99 others); Wed, 26 Feb 2020 10:55:47 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:51956 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728073AbgBZPzq (ORCPT ); Wed, 26 Feb 2020 10:55:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Fzv0zma6qNHzEymKrEWyqTitusIASlSI8vJyXmG2rJc=; b=D7H2FzbBGfi2n+JNeba/gdYqyy bIjC1RC6wR8orJYPP9f8xd8bov3RjjVYOnJzPe4diHk1oURUDw4BV87duYPM2LJJrWdTBqmzpMF6r 9X2a5sGhpu0+buC9IRIR1bBaMIOAXeLtrATuvG+kr0DrATZKcq4PSvGuIAwRUaiK5inwJmAqaoAOM YINQWRRM41eE9hnRno5tCSxgMLPD2IOINRAp6v/scLRjaH5rOK4h3Hb/xRyMOMzVvARLqj0KljAoZ 7ICJnrM6/FvMGFtaePismAf6+PJGACByG2yuJ9/sf046zxiIcfgjPWk5Feob+HTJIp05kw9i6hMj5 Z3yvlKsA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6z1t-0007rU-Kj; Wed, 26 Feb 2020 15:55:21 +0000 Date: Wed, 26 Feb 2020 07:55:21 -0800 From: Christoph Hellwig To: Kirill Tkhai Cc: tytso@mit.edu, viro@zeniv.linux.org.uk, adilger.kernel@dilger.ca, snitzer@redhat.com, jack@suse.cz, ebiggers@google.com, riteshh@linux.ibm.com, krisman@collabora.com, surajjs@amazon.com, dmonakhov@gmail.com, mbobrowski@mbobrowski.org, enwlinux@gmail.com, sblbir@amazon.com, khazhy@google.com, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH RFC 5/5] ext4: Add fallocate2() support Message-ID: <20200226155521.GA24724@infradead.org> References: <158272427715.281342.10873281294835953645.stgit@localhost.localdomain> <158272447616.281342.14858371265376818660.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158272447616.281342.14858371265376818660.stgit@localhost.localdomain> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Feb 26, 2020 at 04:41:16PM +0300, Kirill Tkhai wrote: > This adds a support of physical hint for fallocate2() syscall. > In case of @physical argument is set for ext4_fallocate(), > we try to allocate blocks only from [@phisical, @physical + len] > range, while other blocks are not used. Sorry, but this is a complete bullshit interface. Userspace has absolutely no business even thinking of physical placement. If you want to align allocations to physical block granularity boundaries that is the file systems job, not the applications job.