Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp159200ybm; Wed, 27 May 2020 22:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtIwzRzfimB4sDGf18XiBbtNflLu/AIM9NEx8EU21IHm7SYtjGKKg8KRtj2CysFWFb5N4i X-Received: by 2002:a17:906:15cb:: with SMTP id l11mr1448807ejd.224.1590644827128; Wed, 27 May 2020 22:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590644827; cv=none; d=google.com; s=arc-20160816; b=SrcGhdPOEjzU0c/ZCuq38uHRTdhEQwSV/pUKBmu8yNjdkquzDh8I9qk5iXIhr2/9jQ TLJZ0nLWbtLwMpwGVks6HJpK0JgkDA7buufRjbnr7012DdVeeDUVxUNPfwUg3inlM0pw hoXFvHbZQcH0V7gm1+k1IFgoCHIqN0xQIMgwMt5+vOh3+qdRzkm1jqs5DRExT+aDp0UH 0iaPIzkDkNJexcfZdiGET7nfVruuOvZHkEZytmAGutFLesUOXEGVtzUV/aNWbY+jJuDy 0gqBcg4rTLcUjPhW9jLERs3CHxr5ED3lQYId6KUrdfDAJKBj+awPTW/DYeOGwG2iGXkF 2/hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=P7QNZHLDU9SPyDwV+b1BobdLyPS2Aa8qPobGkmYeBSo=; b=iJZH+3AcKWgeRhPowJFlRAP19vX+Q7ONmWilDYt+pEwklQVq8l8rMgp0AT0LY0LyA4 5ntQ3ayIVtUghUtsdNUw7HLS9Mxl6yTnltgZFruFAqm0K0JybQgm5Wq0/KsxkLT1zC2J 4ycchqUFnPcBlggLGe7nNQfjmPYA3RxCwUyX6Hi+0m2PlIvlydPNhyKdT0868RWGetQQ NeL3um4bdCC3M4q9uWStLXn74RFMwMUYPHpSLVgV1YyTM19GXIuQB5FmegbeCcplMCUK c326ciDebF0oI3hOKwctH/IoE2CLaNyRSDQLHkD3U2dQOgvTSXssD4FY2T3AzUEYXjMk VJ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WE4SAKBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si2211518edf.480.2020.05.27.22.46.44; Wed, 27 May 2020 22:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WE4SAKBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbgE1Fkw (ORCPT + 99 others); Thu, 28 May 2020 01:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbgE1Fkw (ORCPT ); Thu, 28 May 2020 01:40:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03CE8C05BD1E; Wed, 27 May 2020 22:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=P7QNZHLDU9SPyDwV+b1BobdLyPS2Aa8qPobGkmYeBSo=; b=WE4SAKBGOw/Eof/y9Xx+vXK5oA UVDxfHwdd33ocqUYDbHO6tLOm1/gOuEBIuh4873sJ1BN53m5aqQlQnM4x4+Uk5+T3Q9kdpXiq1P7s STKwqNMqLcGlp3YwupkSOuZsd3chuaWpDC1NUId7wPDDMIhlAAIw0TtP2upxC5ydzuTkSWmiCnlVB rP1wpD7cmDySRWgOhsx46L6+Z5EhJs6KVrIlyw6lKmHGAsgqSWeWGwND//V/D2WkCyZmWBoqxqhe3 pIiYx2sBBLgKk0FjFdRm1mMjnt6oJNurAP5KUSM+0RTu2Z4UmDq3rXcrbPCIRZViJq+8NhkW+uUpF iAOMSI0A==; Received: from p4fdb1ad2.dip0.t-ipconnect.de ([79.219.26.210] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeBHc-0002JI-Ay; Thu, 28 May 2020 05:40:48 +0000 From: Christoph Hellwig To: Al Viro Cc: Linus Torvalds , Ian Kent , David Howells , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: [PATCH 01/14] cachefiles: switch to kernel_write Date: Thu, 28 May 2020 07:40:30 +0200 Message-Id: <20200528054043.621510-2-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200528054043.621510-1-hch@lst.de> References: <20200528054043.621510-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __kernel_write doesn't take a sb_writers references, which we need here. Signed-off-by: Christoph Hellwig Reviewed-by: David Howells --- fs/cachefiles/rdwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index e7726f5f1241c..3080cda9e8245 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c @@ -937,7 +937,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page) } data = kmap(page); - ret = __kernel_write(file, data, len, &pos); + ret = kernel_write(file, data, len, &pos); kunmap(page); fput(file); if (ret != len) -- 2.26.2