From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.9]:43884 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752243AbcKYJEN (ORCPT ); Fri, 25 Nov 2016 04:04:13 -0500 From: Christoph Hellwig To: darrick.wong@oracle.com, viro@ZenIV.linux.org.uk Cc: Anna.Schumaker@netapp.com, linux-fsdevel@vger.kernel.org Subject: make copy_file_range do the right thing Date: Fri, 25 Nov 2016 09:40:00 +0100 Message-Id: <1480063201-17906-1-git-send-email-hch@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi all, this patch consolidates the attempt to clone a file before copying in the VFS. This avoids boilerplate code in filesystems and makes them do the right thing automatically. I think this should go in before the series from Darrick to implement clone_file_range for ocfs2, preferably together with these patches.