Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp650187ybt; Fri, 10 Jul 2020 08:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSj7R1SUYkBWiBSbo/07HZrxTHiy/DGBTu9Kf2+Gg2k+y0npB4zrxH1WuK8VBmAZ+4V89U X-Received: by 2002:a17:906:38da:: with SMTP id r26mr59893122ejd.120.1594396720956; Fri, 10 Jul 2020 08:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594396720; cv=none; d=google.com; s=arc-20160816; b=KizItweVucLMhvkIukryOxNOnYKSfE65K3yg5oYeNw+lMFSfDE/ujBtWLbejRXaA/U 5TeOmAWFWo9RVC+4I9qCk5E03ian113fCFeAReXXL8Gp1qn9z1keuCfwqwgClDC8JtDD 9IhUpC9uZ8OxabunSpkyD1x5moRZzGTe0+1dQ71USr4B2PiFVpOmFYxNjYaVheqmxFhk u8yFXizvZFmVh5X/hSx5IFylfEeDKnWV9XLdqUalgzGb2oQ8qXWC3QFhHBZdo8r7cfOG gy/rjdMaqn2l0aZWrgGQfz4RuVLy5NY3J12Xiob8Dg2qGrUmuXXCdJSM8FXINnzaLf3U FFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CpVYyGJEOwWcccxExHRfrgInA8VS1nTN5mktDOBuniU=; b=iNRoeatdiiJtramXSTMN49V3C1ng2I6yxQbBM364xsPX6FSVKbvUGuH/iAUboExWSb F6bQEgvA+8MJlttZH+LzG4qPwnai9F3TL0oD68QQBj/bKUSBaAel9+CNEQuTjH8UcY+J aJ3VOgM8r/ReqVPCi/+56ryl6mj7tLTlvDvPg7ELVT69XraXT6asNdSCbCcHqMWir+Du dKgdAhi3+uiOCqc0mpbOFqTN83cJMFg25Ypji/qPwWxDH1EpllAZF9W07kQdjD/YTHNa hGQcINfeQ5quA3wnfew0x6Fmu1ZUeF+QguUYNQHodUjXPOWMeN3mEGDZ6T040UM8msmZ wAgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=bdKTkj9t; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si4060609ejp.333.2020.07.10.08.58.17; Fri, 10 Jul 2020 08:58:40 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=bdKTkj9t; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgGJP5X (ORCPT + 99 others); Fri, 10 Jul 2020 11:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgGJP5W (ORCPT ); Fri, 10 Jul 2020 11:57:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68571C08C5CE; Fri, 10 Jul 2020 08:57:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CpVYyGJEOwWcccxExHRfrgInA8VS1nTN5mktDOBuniU=; b=bdKTkj9taJdShdVNCith8H/Kg1 Q/fC6e0QbdRcPXuFKAF6VJ0crPiM1kh9vmeq9Hr+YslkEXevEljYTesKqROY3b7BtDSMO9f2LDfN1 wxPuLp47utsk5SgGH/k8+AXSRAhwNEUXSSSoE7uc4y/CXUTH/kZbGfKsdrXaoq4Dd56iDoSqVJdCj JQamlPMlxoPufI93ssCvVJpcUqrU57LRP9/SLDXj6XY6Trlppf3uD+f68biJzyWTM4BzS45YLtzUf AvEh3mRI/346yZ/mOpKtDKBIkpS/+0KwDiFRVk4CpbKsov2xlYxTLzHlYXFHntPmPRodskE3y5aa7 y01OpCKA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtvOq-0002Q0-20; Fri, 10 Jul 2020 15:57:20 +0000 Date: Fri, 10 Jul 2020 16:57:19 +0100 From: Matthew Wilcox To: Rasmus Villemoes Cc: Cyrill Gorcunov , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall Message-ID: <20200710155719.GN12769@casper.infradead.org> References: <20200710075632.14661-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200710075632.14661-1-linux@rasmusvillemoes.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 09:56:31AM +0200, Rasmus Villemoes wrote: > The ability to check open file descriptions for equality (without > resorting to unreliable fstat() and fcntl(F_GETFL) comparisons) can be > useful outside of the checkpoint/restore use case - for example, > systemd uses kcmp() to deduplicate the per-service file descriptor > store. > > Make it possible to have the kcmp() syscall without the full > CONFIG_CHECKPOINT_RESTORE. If systemd is using it, is it even worth making it conditional any more? Maybe for CONFIG_EXPERT builds, it could be de-selectable.