From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933110AbbKROc1 (ORCPT ); Wed, 18 Nov 2015 09:32:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:42764 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932111AbbKROcZ (ORCPT ); Wed, 18 Nov 2015 09:32:25 -0500 Date: Wed, 18 Nov 2015 15:32:17 +0100 From: Cyril Hrubis To: Michal Hocko Cc: Piotr Kwapulinski , akpm@linux-foundation.org, cmetcalf@ezchip.com, mszeredi@suse.cz, viro@zeniv.linux.org.uk, dave@stgolabs.net, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, jack@suse.cz, xiexiuqi@huawei.com, vbabka@suse.cz, Vineet.Gupta1@synopsys.com, oleg@redhat.com, riel@redhat.com, gang.chen.5i5j@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: fix incorrect behavior when process virtual address space limit is exceeded Message-ID: <20151118143217.GA15346@rei> References: <1447695379-14526-1-git-send-email-kwapulinski.piotr@gmail.com> <20151116205210.GB27526@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151116205210.GB27526@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > [CCing Cyril] Ah I've confused the vm_flags and flags variables and nobody caught that during the review. But still sorry that I've messed up. Looking at the code I agree with Michal that we try to find the intesection poinlesly even for !MAP_FIXED which slowns down mmap() tiny little bit which should be fixed. The fix looks good to me. -- Cyril Hrubis chrubis@suse.cz