Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp187475imj; Thu, 14 Feb 2019 18:15:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ26vFBQKxA1G9Pq0T3g9tpxw2Dg5g38ZzAJRUVba1Tiq/+VGrqmQYXNd8Vqtnf3jV0lMTQ X-Received: by 2002:a63:eb02:: with SMTP id t2mr3038003pgh.57.1550196925264; Thu, 14 Feb 2019 18:15:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550196925; cv=none; d=google.com; s=arc-20160816; b=LmTUflzURcKObXFqZfP2EVYcbjryF62aMNkdawnCa/s97tjy7kOVTMbql6Y6y5zQKG M8Fj4Mb4bMWKaAA9/EL+9KzBBVAccnyfc0UsfhnsvEkPMKzb7vegtLhKmxVC3rRGI7Hn ls1LXVNlp/MMA66tzHCMCHnUGsaNVLtvTTYr8/66AywKsE45PHZE1s61xzJ7NIK8vbVE ZgL3bv3HXPFq8NGndFPLrIoo195l7Op6pycE894XdhHpF1peQLpXhu1S7yQGWfaiv3B3 jK3qLjCZPQjwjsWDQKrFSZR7jV9bWlBG5DcszrBKW+T8BA45n9xWwNqShaK8gxPvjHJT PAHg== 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:subject:cc:to:from:date; bh=lXrlYIhepbgQK8Y5UettYvEY8m/nikNoJZvVZ6M3kPU=; b=kKgHSVwnFKBVcLY8U+ac9ZIo6kHw7UKAJaTyv2+hkxhvGalsFXVVc+oSiJzFUAUsIb hWHVPnM0rlZuRxcnzxz0N2CrYkShtnSA5OPnbCl44s/9KclBBXR24spBhUv1U94ZbKZI 9wE+P+6eGQf0by/0IlOXcLjnoygkajYhGMmTiYF5E0rFggjuHLxDDrGtNnL6B/Ut8CSp 5Q9ymFo3HBvag7mBA/g+DrA1yltQzcvTQyVxdc65ek4ig7v8B+FgM9SAiyk8fr0eeYhL CkZOJVeukEy6xroQ1RqjB6G/NhvsAm8xCnFosYQt1ldv2O0DU3vg1Gn8lIp8wSwM5M3E cNUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h85si4145214pfd.27.2019.02.14.18.15.09; Thu, 14 Feb 2019 18:15:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439471AbfBNVWq (ORCPT + 99 others); Thu, 14 Feb 2019 16:22:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38016 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387702AbfBNVWq (ORCPT ); Thu, 14 Feb 2019 16:22:46 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7E5E8FF; Thu, 14 Feb 2019 21:22:45 +0000 (UTC) Date: Thu, 14 Feb 2019 13:22:44 -0800 From: Andrew Morton To: Johannes Weiner Cc: Peter Zijlstra , =?UTF-8?Q?=C5=81ukasz?= Siudut , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] psi: avoid divide-by-zero crash inside virtual machines Message-Id: <20190214132244.8a26cc78cda17abd625534dc@linux-foundation.org> In-Reply-To: <20190214205343.GA17084@cmpxchg.org> References: <20190214193157.15788-1-hannes@cmpxchg.org> <20190214115855.76869aecd777fbd37d48f45c@linux-foundation.org> <20190214205343.GA17084@cmpxchg.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Feb 2019 15:53:43 -0500 Johannes Weiner wrote: > > if (now < expires) > > vs. > > if (time_before64(now, expires)) > > These macros always have me double check the argument order. Yeah, me too.