Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3623634ybk; Tue, 19 May 2020 09:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRPjnmy3XOUfK57GiLEc0d6J8NEwk8fUq8FH7nKQoHtz44VbFNPeFPWXqjcm9dB4cAxL2H X-Received: by 2002:a50:f402:: with SMTP id r2mr10477146edm.27.1589904251905; Tue, 19 May 2020 09:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589904251; cv=none; d=google.com; s=arc-20160816; b=p0L6T/rr//ggaUZLQMuiQwQleWjyb3omqKPaorA63vpWnSrDZyuTtkD7plfadbbIrA n85E3jJnHUuGkcD15hdzndcraxtXgZAcnZqmTAh1jD9cS6N4h/mSXtIL2HrJfdhnTwaT hT9a90XujgFuVqzBbI+5CAEEA2UMRCNz3i9RnxgO6o33TYyH4kcX2CVF62V7j/eJbMn0 gZ3cNSX/vPuAAbvMsD2BIKDBWXKb7YUcTPiLxhawq/wpU9zFqAmF3TbDHSjAnC1SIcSg OJemKtd7P4fQDPviv9fcA/Ga5y/ZkZgIlylxfO2RzE6OevitsXx0/5TweorXk7GNslua zkoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=EChIuRDHBE2fP/nhZePuBoCI4yW9gOzMTOOZxaha+Mc=; b=yFkHhfBOjaVv6cHdO/oFbA4F1ZObhKGt4ZH9uop03SaRMeFcBWKG/vmvkUm8XFTqIr sBs5X8PRCEWBwaTCXhsWYo0vaBiGOCRTqrx9mt5IZSH4WwkPjtEeZqbFCmIGRgFnXKNS b/xMIrt7KyALRv0rn2lW/b5GW/De4QGqAg7zVRo2PzfpMBUVh5MC1BB2PuAa4PPtWNoW QcFYlcVjlPg2/BANrx9UKTAT6xwXlxmOQzKFNaAwC8d06E9UruTW19ProtvY7e5kShwT crULgCrN2bn8N4GLQpQ7BTdZudHJag/DxczBmrLsUGkCytWozdns8Lw7kons86KMjBdB 7P3w== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si8204333edh.605.2020.05.19.09.03.42; Tue, 19 May 2020 09:04:11 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729272AbgESP71 (ORCPT + 99 others); Tue, 19 May 2020 11:59:27 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38560 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729089AbgESP70 (ORCPT ); Tue, 19 May 2020 11:59:26 -0400 Received: by mail-ot1-f68.google.com with SMTP id o13so261770otl.5; Tue, 19 May 2020 08:59:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EChIuRDHBE2fP/nhZePuBoCI4yW9gOzMTOOZxaha+Mc=; b=SwM+hS/x8u0hUuAlW6DcoLHI26AvrHXuvEh7EVnW4gmL0AMVtcizK/+LgItB78y+a/ gu9DWmhRYqWzA5YxdJgHW6hQo2fakviDxtwIDtteA62Z5kA2mOMnv+zlCCC+TPoZbqRE Up2WjD3VCW4Fxq/vFUwZmkCJMF+nAHWqD/XI0w8r4AJeU9fEXZJVwbT2uCGyWGqyZAEI RgMhN/MXUZseduToSS0dWXqMmKiCS4GCBbfxMiE3/sHzAHL0cIIyV8DXrCMjU2WNOpS9 twTgNOi6TjbRDytnheagoM83+o/25RzkoJH7o27I+THwkOK2SNhbnJUU+swCQ/PN5tlj 9YiQ== X-Gm-Message-State: AOAM532s8yaqL1WBligdJe2nUn1Q/5MPGp3h6Xq3aX6/7zU0gOVaC/Fk Th67XLf8tpjlqHieruTrwjE3J4ZT+N2Uv11qI2U= X-Received: by 2002:a05:6830:10ce:: with SMTP id z14mr15933980oto.118.1589903966068; Tue, 19 May 2020 08:59:26 -0700 (PDT) MIME-Version: 1.0 References: <20200507080456.069724962@linux.com> <20200507080650.439636033@linux.com> In-Reply-To: <20200507080650.439636033@linux.com> From: "Rafael J. Wysocki" Date: Tue, 19 May 2020 17:59:15 +0200 Message-ID: Subject: Re: [PATCH 1/1] hibernate: restrict writes to the snapshot device To: Domenico Andreoli Cc: "Rafael J. Wysocki" , "Darrick J. Wong" , Pavel Machek , Christoph Hellwig , Al Viro , "Ted Ts'o" , Len Brown , Linux PM , Linux Memory Management List , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It would be better to paste the patch instead of attaching it. Anyway, note that the snapshot special device is not the target block device for saving the image, so it would be good to avoid that confusion in the naming. I.e. I would rename is_hibernate_snapshot_dev() to something like is_hibernate_image_dev() or is_hibernate_resume_dev() (for consistency with the resume= kernel command line parameter name). Thanks!