Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:37916 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbdIAPjc (ORCPT ); Fri, 1 Sep 2017 11:39:32 -0400 From: Christoph Hellwig To: viro@zeniv.linux.org.uk Cc: arve@android.com, riandrews@android.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: switch in-kernel read/write calls to kernel_read/write V2 Date: Fri, 1 Sep 2017 17:39:08 +0200 Message-Id: <20170901153925.30578-1-hch@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi all, this series moves almost all kernel callers of vfs_read/write and friends to the kernel_read/write family that includes the set_fs calls inside the called routines. The exceptions are the integrity code (Mimi has a pending series for that one) and the splice readv code which doesn't fit those helpers. But at least no modular users are left. Changes since V1: - update f_pos under lock in ashmem - use void * arguments for kernel_read, kernel_write and __kernel_write - fix offset usage in cx25821 and target - fixed fpos calculation in nommu do_mmap_private