Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20353879rwd; Thu, 29 Jun 2023 00:49:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vNEtKzcrO8uSzNc7RDG49OQ1Gv/LLNltrn2wkfm78ysHDVCM2AHuTl/tFXM0Ru0SvFMQO X-Received: by 2002:a05:6808:1153:b0:3a0:3144:dd3a with SMTP id u19-20020a056808115300b003a03144dd3amr38201689oiu.37.1688024994607; Thu, 29 Jun 2023 00:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688024994; cv=none; d=google.com; s=arc-20160816; b=lqLalBm4VXnDBHAw5ohFOkP45uT3+cn08/PgDmqXAZYrYtRdjKKyZZuNCiVzPT+jMA LdVUI+jv7SrKCED8MZ90LtITB2pYP3uxVRwI0A9AktjbcXwEoFM+aZu5yt2cEdbjBrsD Sn4MZfIklpEpsj1ROgGo0vgHivZeN3c2SWxNFILz8jxVBNhRj1ZSeTln51oX1EjVPkW+ hZ6JNk6AIvliubBoDOAyuGLRs+isrQnU+nkqsK05neeE04mui//bmtYybw/eCSiTU7DY UjmsvpAsAkPSxmf3TDC4DdCkGNOqTHAk0X86JaS6AEsliq5fzY4e1UW+kaJ2fjK825iT XYCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=s5nGGw5gvPHiYhCADwmQXV7PL7CPhqenUtZ/ZGNPhyk=; fh=DM+oXyorFiOBvhRRJYtD4EJPm+6fhEgWkpmDm5U/8EE=; b=GBWBGNBm+OG9dXCuC1qT2mJSg+psiDTeQWNlIsYPyBTxJRtoI+NYDqIBcME2PNlnA7 BDEhr323kfWT7XmSPa28M5ieXeMeo73BpbjgM+mrRsuTm9RGQLSGWFkwpJV1WUIIii2+ YEthqCHEHcs7EPrLYrZKBsJWPvAjClBtTw0iCfD0nNtGvrLo/Tmp3cXoqBGDNkZWdbpz H8cBLvl3M2A2s52VoXlZazpDLYm21HaIkkkKi5bhCE+y3rpCL5x1t69Vlck2ybNZqrgt GV5VmduTtxgLXi5vhq/gg8OJDhVIPyRzmWjdDvtZp/S3lsuXPfHe7qOYkkE3SXoM5yYn nV0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=FecDdIDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a631f56000000b00550e8b3614asi9324462pgm.901.2023.06.29.00.49.39; Thu, 29 Jun 2023 00:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=FecDdIDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231450AbjF2HaA (ORCPT + 99 others); Thu, 29 Jun 2023 03:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbjF2H36 (ORCPT ); Thu, 29 Jun 2023 03:29:58 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A8151FE7 for ; Thu, 29 Jun 2023 00:29:57 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-992ace062f3so45190966b.2 for ; Thu, 29 Jun 2023 00:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metaspace-dk.20221208.gappssmtp.com; s=20221208; t=1688023795; x=1690615795; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=s5nGGw5gvPHiYhCADwmQXV7PL7CPhqenUtZ/ZGNPhyk=; b=FecDdIDCDGjKQnAkDLrNfxBzQgNPyKHtyCp/sXn/Io9r4tUWa8G/pVqxGdKU1Zhhiv 4UEDRHX/xSBASiG73ttGLR+OvaxQ/JuzBbH5aT+RTImnKkHKoqEzMSDdueUdcKDWLlcZ lPtbx9DIIik0XUeq+MSwXohACSIqUqCgpWgKh3fuI2szFBaJDs9vrnD/hWaiy+JWYp5u QCdY2FSKiXuTbevAaUOA/Z/ljh90+/XtPnis2HFE1jhZ1SuLUOJJ4Fu+AoQsuOIernV3 1qeDFNAb61HHocFkfmOPwe1amncovMFPQKd0clrVtpxlPqhU8W0sZoxkCsU3K/PJaFGW 2ALQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688023795; x=1690615795; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=s5nGGw5gvPHiYhCADwmQXV7PL7CPhqenUtZ/ZGNPhyk=; b=awmKykF5P6Rgf66vEXkK9Fk56tGFmcJjpJ+6Q0zHpaWg54gq5XcoXsgs63oRSG5J6A yH2gz11+ZlCNU7b04dzEzZZv/c8RvjEoT+8qqTAJkDMntMsx8KsmLah6B7eD0IawjDew a3XagPtaoDhL0ZYpwY8A+UKGyU5ewH72BzXtJp70AReGQFUAfcLtJrraSlet+qeM2gw+ gEqi90OrEQE61mS4K0+eGEzST8QCiySqVREgLw7aTq9oGCSXoao/XOm9u1AALQisajwD 4AlKbZX/3wO7HIB6uD4M9Qf/7+v0zzVDdOMEl1rkUfpqLox/lhHm+K/667l6deCURT8Z FAIw== X-Gm-Message-State: AC+VfDwCaUfniJDyfDoA3VM+jkEAkoyrSX1kuV7x14+ne0UDagMl3doM Wac/5OrMSzNKflcCGpkv/JmbhA== X-Received: by 2002:a17:906:9b86:b0:982:21a1:c4e0 with SMTP id dd6-20020a1709069b8600b0098221a1c4e0mr35643468ejc.56.1688023795459; Thu, 29 Jun 2023 00:29:55 -0700 (PDT) Received: from localhost ([79.142.230.34]) by smtp.gmail.com with ESMTPSA id br7-20020a170906d14700b009893b06e9e3sm6552996ejb.225.2023.06.29.00.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 00:29:55 -0700 (PDT) References: <20230628190649.11233-1-nmi@metaspace.dk> <20230628190649.11233-4-nmi@metaspace.dk> User-agent: mu4e 1.10.4; emacs 28.2.50 From: "Andreas Hindborg (Samsung)" To: Christoph Hellwig Cc: Ming Lei , Hans Holmberg , Aravind Ramesh , Jens Axboe , "open list:BLOCK LAYER" , Matias Bjorling , open list , Damien Le Moal , gost.dev@samsung.com, Minwoo Im Subject: Re: [PATCH v4 3/4] ublk: enable zoned storage support Date: Thu, 29 Jun 2023 09:25:32 +0200 In-reply-to: Message-ID: <871qhuzpxr.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig writes: > What's the point in having a separate file for about 100 lines of > actual code? Especially as that needs a header, intefaces, etc? This was suggested by Niklas [1] to make the conditionally compiled code more readable. The alternative would be masking out the code with a big `#ifdef`. If you prefer the latter, I can change it back, no problem. But I must say I think it comes off cleaner when we move as much as possible of the zoned code to a separate translation unit. [1] https://lore.kernel.org/all/Y%2Fy+UFEHn1F1sg4i@x1-carbon/