From patchwork Tue Aug 28 17:51:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10578919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6E663175A for ; Tue, 28 Aug 2018 17:48:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56FB62A9B3 for ; Tue, 28 Aug 2018 17:48:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AB802A9B9; Tue, 28 Aug 2018 17:48:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA5402A9B3 for ; Tue, 28 Aug 2018 17:48:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C32346B4730; Tue, 28 Aug 2018 13:48:56 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BBB976B4732; Tue, 28 Aug 2018 13:48:56 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA9696B4733; Tue, 28 Aug 2018 13:48:56 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id 6224A6B4730 for ; Tue, 28 Aug 2018 13:48:56 -0400 (EDT) Received: by mail-pg1-f200.google.com with SMTP id a26-v6so1547581pgw.7 for ; Tue, 28 Aug 2018 10:48:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=Y89RT5RnFdgrye4tLJgA+W6LvpY53Ng+T0eneSDYVus=; b=qQZ62CiHUeJ8nt4CgwH7QQkASXvGcztmEq4u3PF4cPUoQ4gQmTJQ+g5PzMyC83Aq7H Gbm3wN6vQDW3K8nxOUujhMPnX3Ilhxtw88Es/c8q2OUU6t+rwtsvErKg+ihRMXcmYasB nfi2H0DKP2Fmp03sBmIv1zYsobre+K59K0FaPUSGoxX1F0OoBARYIObbKrhWRFu4G05I WQmEfncEhBVD8IYVBVFFcaVXy2r63vWxbTXsLK3BPWAHgU67SZrKtVn2edDbOoXCjDcQ Hz+WSy5M0er1RozKsoC/DjOqI8y9B1ppVVv6D8EamD/JdqPuh9Akw5Prfj7N/uA2FNHX 7O3Q== X-Gm-Message-State: APzg51DmPl8oCj7oyKWq5SGwmGok38clrNaaKMiyCOrUo0vyaeSlK4lL N8ADibtvS8Ogh+GW9jXjhqWV1AcJRxJqibRSiSaccAhjlxTzGTymVxvV4WsxhFXVA4dWESH97w7 UZEvCxETD4iWQhkoPUA9tyhAHs0Mwx77OomBN5AWMgA6vOFi9HshCwytqT3CNPxS24p7RpSQpyr C2Bu2NCpdGb70GPL3I8hu7KyREXU0LAKaoD9zFqANBdMaNn/sLnrrcxaLU3Y3ZjBDokH3z7/oxq 643MKaC5n3JWoNurziTv5zKi3MxIH+Hm5b6j6zBq2SL9Vsl0gT7lpO0lOKiOuwhRPPX7Tk1YFs3 JoigngvlviRcseFniL1PLFqojFaDaJCaO3eep7lS2tdRKitaPQJ1Byo0/bEW5haxGKFASBKcBks T X-Received: by 2002:a17:902:724c:: with SMTP id c12-v6mr2498276pll.326.1535478536057; Tue, 28 Aug 2018 10:48:56 -0700 (PDT) X-Received: by 2002:a17:902:724c:: with SMTP id c12-v6mr2498234pll.326.1535478535118; Tue, 28 Aug 2018 10:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535478535; cv=none; d=google.com; s=arc-20160816; b=w1OtgU2bHLXEcqSJ3N3UV0D9nAdYycgYxtnnSAdf+BTLiBBhk2x0wkf7uJaPEyf7Sp MO77nY+O4aIY7rKduYVkSZQq9b9qa+Iq5EiRK3cozv/0y8JtP8n6eR0YW4V63xOXeA9s +ELDpKHo+lEmyhU3RweCAPHkjvxTXe9dCpwVgg3Dg6vBjafyPNGvvIg1zcXim/Iu8hvp PMNXdoUqq1BGiadcWbLjJM480Unjif4Hmxuxg/JF/HOFWQGCfShVpmbb0EH0bDOH8OF4 +MJ/ksXaXSJGKMjkvNF+5ut0rjV9nYUYw2yHayKLbQWiZFqqdzo9w5ps0dpbmKcL2pEy VrmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Y89RT5RnFdgrye4tLJgA+W6LvpY53Ng+T0eneSDYVus=; b=NAtBDR16ufLV+254yzhJ5HOsn+yf/8VAQ7zbmPMCu47BtgnmFmw2N+tbA2pCBaWLxF 7HIsnvnjjKDEh9d4JfBGF6uFnIkxPvn9OKsibfbumot+IxjLpVAEMLFkG7Gc1yyudNod f9f1VW6YqbFiibrUlGdTd6vvYX0L/MP/Ld0JTaDeN/CqtR7UN+oayHvNTSdSFAub4j2A 8XxN9WpKgYwYdj6I6FvGTgNox0GE5k8d2La5BszH5/z54ywoeQzd+tLqoGJIEmP2c3Ht 1OROQl+Y+ReLw8gq//Txk1nbXBetPjZXI5o40vEXETRp28vtyXOXO/LYNcCsHtFITZdV 0YnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0zCjUAQ; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t8-v6sor512451plq.113.2018.08.28.10.48.54 for (Google Transport Security); Tue, 28 Aug 2018 10:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0zCjUAQ; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Y89RT5RnFdgrye4tLJgA+W6LvpY53Ng+T0eneSDYVus=; b=P0zCjUAQhom6iQ6XkiRdVcWkdSkQAgBQk1BLxRODbTkK1Onb+N2tLoVC5rqBB309EM 5GJSjazrcbRXv+Z61glaqDliV3nEUazCiwJoNxo7QLGae/AF9y5Be3+8ENZP8/glDn1M vRBhmF4nV0wBC/eoYMEtMIVHiV+5nG6QEx060/bAJCoQbdkG/FNboLSVmbMyozvHWar9 QAhHlcQLKDznfZLs78pmM1uD20Ulu7Wqd3GJ+snDdGMifEH1o+pKEnUcbkv9UFdJecDn Jgz3Ex1CPRwpfetwHrs5U8Iva1YECAx2ZTmq+9XNk+qkG4BXgLaEa+CHDaSdioCL1CUQ +drw== X-Google-Smtp-Source: ANB0Vdb2SqAkTycW01aclb0z/q9gh4M1iRc4gH9arO9xXt4IuL2NjZaJo5jsP82P0rEGXLXn59iZuQ== X-Received: by 2002:a17:902:5a02:: with SMTP id q2-v6mr2508676pli.253.1535478534592; Tue, 28 Aug 2018 10:48:54 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([2405:204:560d:9e3:a1d1:bce6:673e:c4b3]) by smtp.gmail.com with ESMTPSA id f184-v6sm3553808pfc.88.2018.08.28.10.48.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Aug 2018 10:48:53 -0700 (PDT) Date: Tue, 28 Aug 2018 23:21:54 +0530 From: Souptick Joarder To: akpm@linux-foundation.org, jack@suse.cz, mgorman@techsingularity.net, ak@linux.intel.com, mawilcox@microsoft.com, tim.c.chen@linux.intel.com, ross.zwisler@linux.intel.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm: Conveted to use vm_fault_t Message-ID: <20180828174952.GA29229@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000247, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP As part of vm_fault_t conversion filemap_page_mkwrite() for NOMMU case was missed. Now converted. Signed-off-by: Souptick Joarder --- mm/filemap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index 52517f2..de6fed2 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2748,9 +2748,9 @@ int generic_file_readonly_mmap(struct file *file, struct vm_area_struct *vma) return generic_file_mmap(file, vma); } #else -int filemap_page_mkwrite(struct vm_fault *vmf) +vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf) { - return -ENOSYS; + return VM_FAULT_SIGBUS; } int generic_file_mmap(struct file * file, struct vm_area_struct * vma) {