Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754634AbcCBKzz (ORCPT ); Wed, 2 Mar 2016 05:55:55 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:61890 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbcCBKzw (ORCPT ); Wed, 2 Mar 2016 05:55:52 -0500 From: Arnd Bergmann To: Christoph Hellwig Cc: "Darrick J. Wong" , axboe@kernel.dk, akpm@linux-foundation.org, torvalds@linux-foundation.org, martin.petersen@oracle.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, shane.seymour@hpe.com, bfields@fieldses.org, linux-fsdevel@vger.kernel.org, jlayton@poochiereds.net Subject: Re: [PATCH v5.1 0/2] create BLKZEROOUT ioctl that invalidates page cache Date: Wed, 02 Mar 2016 11:55:12 +0100 Message-ID: <3061888.dPHoQkWWFl@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160302094416.GA16631@infradead.org> References: <20160302040932.16685.62789.stgit@birch.djwong.org> <1889689.0axyUkdxkf@wuerfel> <20160302094416.GA16631@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:8mpC9BuAURithOHw/DYUj2APbDRO8MJ6knZNQOlpUdOAWj3PrW/ Tc6A6Ga6hBTsA+a2UQsdkxYBRdYdMAB55aYshQf8cdFCZIQltxmk52jugml8mex7l/PUf5c U8DCl/f4uNvnKuV3u9ov+ktGlWQ92BH5km9kDRc/5uxqBcgjiIPOrrtdtJ8igg4B303DpYR 0OMfNMflHfS2DToWTUJng== X-UI-Out-Filterresults: notjunk:1;V01:K0:mOUesffV4OQ=:s/vdimJtkNffP00uKF/cPZ qjyqyp+US/92kWB7QvmKbtcmRC8azbCXm3aehMNhnc4VZxPSBm4SY7iXiB9vjABMcCVclj3cf A6SCSpLPz7hKZZIcU2zkqASo8u4MD41NJWu9wMEGdeprjEUfb8x/T6QyrlCwn9RzIU6Y2L0qY 0jTUV8bc+XuXxX1gz011hcd/8oTbNwM+rHVGOJoN7Sh6bDcnRYtwNsNF7v41nW6csU6fhjaS2 cjJG3H7VGUMwu7lmn64wKWxzjxyySEum+g/+uRoUMxEtd3IS86Q81VKcK1WHCRwfYi2Tg43LU cEYMA2yR6SNPm1j/9Mbmaz7YSOlGtu4LGTS0abUPnSLyWIMmsD+i30IEYRggG3cgKeqMvqjAv Qv71D02WJ4gIguOyENEciQ0VgAVvgduu//yXDmClCdhtYSBrulKTnQf/TpiWaieqB9eDkGRwR Y+TtCFJO1vuvufLXVCGSulaM2Yseg5i026Wh1U3fFYh4u/1UH6G+N/47Sa/rGGzqCMLG7ptr9 NykCvtV2jlnkpLMeaZCU8nnIBtDYrENDtZct5fASlWf5KbDYxSDiHI8MAaW1gjBNlRN1JeS6s o+Q3+onRlOh/gePldqj+7CA+NobjaMPR4MZwfnREDcAl1y+8g/A0BmroWwOuGpb6UAZ3VNcOT nmdlIFRz22y/lDzTKNPOXHE2QIqv9MTP3katX/5X7NNhcLai7+/dz2PhgBWuyvmTCppgYSbgp YkHDRRWDlbaFU+CB Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 656 Lines: 17 On Wednesday 02 March 2016 01:44:16 Christoph Hellwig wrote: > On Wed, Mar 02, 2016 at 10:15:02AM +0100, Arnd Bergmann wrote: > > I'm missing the background on this, just saw the patch fly by, > > so sorry if this has been asked before: > > > > Why do you want to invalidate the cache? Is this to save RAM > > or is something else going to write here and you have to invalidate > > it for correctness? > > BLKZEROOUT can be though as a direct I/O operation - it issues a > WRITE SAME (or similar) command straight to the device to zero > the specified range. If there was cached data for this range it would > now be stale. Ok, got it. Thanks, Arnd