Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3089470pxj; Mon, 14 Jun 2021 14:13:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6rlcEeYQoZ6mL54biciiBy+snsljU8YEap+IAMoR/n0bP5hvjcLnA8NftK9DeuHZyn1p7 X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr19762687edd.327.1623705234801; Mon, 14 Jun 2021 14:13:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623705234; cv=none; d=google.com; s=arc-20160816; b=PYdWGcdOdDV9WYxpR8GyQAcEIFSVKxKK/1g0plnwRos+KLHdfW19pAs8szbGGPTNeY 9hwX1TvoJSlr7f7tPPoZB5+x53EPgAKIGXZvTUy6JRLdldF2YHTFgtXCuZEiXiLFOgFh 8SHJNcpm1mnN3CqsjPKWuh6EcZu0hCeUc2rR3FjaQ/PhWUeWMJpOo9iIGbVbZnp0OWXK idlIGx+Ut5l1KWE/bF2R2sHtr1bt4CXSsZSFldiJ/oS/uigLK/TLxSAseP6qOFuXDW2r ZrwOxyY/vRtndIx5w+uww9HXm26SAVnbaxtv8EBjb7C+oHkftZkxAawewkdupOWnK2c0 srGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=0Mn8+GlgrQdOA/I1bTqxQYRGsb/yRw3f+Z55lqaAtNs=; b=CAVKctr45GdKdgnda9wCcY266Ye8yFayAl4cZcCv1YekmwNRqm/upqs4nevJNe4kGa dNB3oedW10JQfKpEkqLXpZOX5Od3qzfGviukwXtO2EkEEiX8XfNLQhHy/oBOs5Pyj7XP id8tYPGtMCy5vWgse7WQJeziaToXYPKgMWFjSDJfZAdkOaPZhhHofjvDLPW1vgJRZldA raYmL4vb7aan7kSStkTp/foVAjU9KNVD/SPlXpA/ccjH9Eu7Er3xN0CbqCHazJ+J1CFH 8hDgZuU1VAcnAqJ6UqHOgAd9T4Os+u/21f9TnKWTWOr6xVXF7/y8qyI5q+YhieXi48F7 Sr1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UcYrLSHQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si515929ejd.407.2021.06.14.14.13.32; Mon, 14 Jun 2021 14:13:54 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UcYrLSHQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbhFNVNh (ORCPT + 99 others); Mon, 14 Jun 2021 17:13:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36745 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234420AbhFNVNh (ORCPT ); Mon, 14 Jun 2021 17:13:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623705093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0Mn8+GlgrQdOA/I1bTqxQYRGsb/yRw3f+Z55lqaAtNs=; b=UcYrLSHQK/9feBnYo/opWDwuzhaayyXq8gB2bjyyTppYP1zNNgZey8bN1K0jC8w2bnXbeA N+gjQhOoSIDxU6Zn7z1SkGtmkyfwrKdyaoZ9eUiI8vrBg7+LISvvvuyzC0+J+uHnErQbA3 yWUDsNijWvZWfbJtefaOB8tgRcQBWRE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-33-3bfqkI24OYSv0GZSCObOOQ-1; Mon, 14 Jun 2021 17:11:30 -0400 X-MC-Unique: 3bfqkI24OYSv0GZSCObOOQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C7B7C1084F42; Mon, 14 Jun 2021 21:11:28 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-118-65.rdu2.redhat.com [10.10.118.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A5445D9CA; Mon, 14 Jun 2021 21:11:27 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <162367681795.460125.11729955608839747375.stgit@warthog.procyon.org.uk> <162367682522.460125.5652091227576721609.stgit@warthog.procyon.org.uk> <475131.1623685101@warthog.procyon.org.uk> To: Matthew Wilcox Cc: dhowells@redhat.com, jlayton@kernel.org, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] afs: Fix afs_write_end() to handle short writes MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <501526.1623705086.1@warthog.procyon.org.uk> Date: Mon, 14 Jun 2021 22:11:26 +0100 Message-ID: <501527.1623705086@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox wrote: > > means you can't get there unless PageUptodate() is true by that point. > > Isn't the point of an assertion to check that this is true? The assertion was meant to check that that it was true given that the page was set uptodate somewhere else before this function was even called. With this patch, however, it's now set in this function if it wasn't already right at the top - so the assertion should now be redundant. I can put it back if you really insist. David