Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp570439pxf; Wed, 7 Apr 2021 06:41:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvTaJ7Ac8EMZvGKwFJ1D/nJy0btT+b0MuL6FuCwiCKUAJiOZ2uWA+PzGTOb9Zfu0f89vs0 X-Received: by 2002:a17:906:3683:: with SMTP id a3mr2249872ejc.210.1617802912369; Wed, 07 Apr 2021 06:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617802912; cv=none; d=google.com; s=arc-20160816; b=g5kWBhHHNBomV3YSkwTpjcV4SGSy13aPuktkUs/uSTuZiD/7NGLs634z7w7EDeRBR+ wws3u6Vbrt4PutFJOXUvOBcWoItwtXYyxlVddKLKugGfPFBLE/0G+yvNVaK0ooKApUlc 6zESrFdCn80ZCdXNkl9ciGMief8UGfIYJfdt22WsNUmK9pXvcG4VPvujs5Dlhwac2YUJ vTlzHg9UC7Xg7OAG/GfxokrFpm5KnXvmDpd7FMJyylBVHpamN+7NDaNwExhPq/AYvj1P FkWief5PGZTYP1WoRpl/RbFQIwTiR+4Cxo6G6sRUg2uwpvdV3DqrrpwoEf9D9U5JW6Ks 5LUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YKVtgqn3FTurcOSdNrQJXSMQKGxJcG+Owhfj5N0hU7Y=; b=j0R2vpCvMO2lzCwCV2kP0l8pfixmnEjPJK29xs2CvRIjS7tR3ajXTMxGXQv3TL2rHP +JIo5fumlRTa72uSGCfsVQrEjHUhr46zh4kygkF8PqZFc1jFlxVb6NA2JSj8zE6AKq8b E7m1dxAcFTUPszlwPJKQLdPUNDgqKoumdf6nGS2oOOC1NdLriwzW1/1Y0RqgNQ9AIt/X L2VHjT6ewH7bq/FSQcQQLytZ8kgyZRUIZ42P2a8LTQp35Pfx7o0znfFOB7rZAykLkNDK 5QKgWDWcEfLzkQg7XaIkk+wmH0j5na1mFvEFAKbZgk5F98FQW3P+YfNMmQCtaISloYqv Qk7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A5ZP5eKr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si18588175ejx.546.2021.04.07.06.41.28; Wed, 07 Apr 2021 06:41:52 -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=@gmail.com header.s=20161025 header.b=A5ZP5eKr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234126AbhDGASJ (ORCPT + 99 others); Tue, 6 Apr 2021 20:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237769AbhDGASH (ORCPT ); Tue, 6 Apr 2021 20:18:07 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 957E5C061760; Tue, 6 Apr 2021 17:17:58 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id mh7so14735306ejb.12; Tue, 06 Apr 2021 17:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YKVtgqn3FTurcOSdNrQJXSMQKGxJcG+Owhfj5N0hU7Y=; b=A5ZP5eKrx8vDWZkqIePXqyNHJutxfC/J15bpfUtlPvMzj72A4ChpSBj0Rv1CRgvAdy z5BCCfEomP6BXF7oQb999RbCivKrexuSzaJzWZfXQXgJyJuYs4f8gEQr/L9tyNxEcGmi I52PhKt9nVhEQZMFQV20+75COflG0PIaCe7dGeRjBJDgrfKbDIrH16WKtrtbA4KBK80l 2aU2MZo43Quu7g4OMTMRQJeZbNZ9SXD3S3BgCFSLqcLszlu+UWyDm6qL0arE3+17DVYw Ho9eNDsXb3a8FryWJQfz2YakPoTs6BqjZtbdxXBCaErN8pOhQ0CRkYvyI+ZOwKwgj8ar rSfw== 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=YKVtgqn3FTurcOSdNrQJXSMQKGxJcG+Owhfj5N0hU7Y=; b=BS+1z5fR6mOqOjT1rSAHr+hPww84UsAD/yh3Shor9HsxIX4iJ/+ppennXHt7ci3PAz m9dPREcXJR2DBLGVJmApSjlTi7RURTWFGpeagw5kMveSEiyb8MV7OFSGgTI4uFh7mJ2f XY2IhVyD1pOYrB2advLdJC1xo/nj1+w4yQ2sJIJ4EGmgU6x5k7WIeV3PYLgBSgXNaI3N atOZoyP3Fsm3otlrgQvjh2KVqixlXuv4NbsPW802rC8ZpFGMRUzSiDmaTXTmrF8ckHek aFOzt4eB9pc/pfrg7GyFOpWKkncDJ3VHBGAWcrsuRsSeNoqUpoeLKUN92eDTUZm6J7Kf cTmA== X-Gm-Message-State: AOAM5307+4e3DD5774vMtnbLypiCCEHs984twj+xNmqBNNKXivEDzce2 YH302QJBdTHNkhm0idIA6zAOYcwBZT0MSWKYpwTBljK2 X-Received: by 2002:a17:907:3ea0:: with SMTP id hs32mr652096ejc.411.1617754677376; Tue, 06 Apr 2021 17:17:57 -0700 (PDT) MIME-Version: 1.0 References: <20210401113933.GA2828895@LEGION> <20210401115008.GS2088@kadam> <2b758812-f00b-9465-c24e-763912748809@samba.org> <46e67316-58f3-435d-458c-11968499d4ee@talpey.com> In-Reply-To: <46e67316-58f3-435d-458c-11968499d4ee@talpey.com> From: ronnie sahlberg Date: Wed, 7 Apr 2021 10:17:45 +1000 Message-ID: Subject: Re: [Linux-cifsd-devel] [PATCH] cifsd: use kfree to free memory allocated by kzalloc To: Tom Talpey Cc: Namjae Jeon , Ralph Boehme , Dan Carpenter , COMMON INTERNET FILE SYSTEM SERVER , COMMON INTERNET FILE SYSTEM SERVER , kernel-janitors , open list , Steve French , Colin King , Muhammad Usama Anjum Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 2, 2021 at 7:04 AM Tom Talpey wrote: > > On 4/1/2021 9:36 AM, Namjae Jeon wrote: > > 2021-04-01 22:14 GMT+09:00, Ralph Boehme : > >> Am 4/1/21 um 2:59 PM schrieb Namjae Jeon: > >>> 2021-04-01 21:50 GMT+09:00, Ralph Boehme : > >>>> fwiw, while at it what about renaming everything that still references > >>>> "cifs" to "smb" ? This is not the 90's... :) > >>> It is also used with the name "ksmbd". So function and variable prefix > >>> are used with ksmbd. > >> > >> well, I was thinking of this: > >> > >> > +++ b/fs/cifsd/... > >> > >> We should really stop using the name cifs for modern implementation of > >> SMB{23} and the code should not be added as fs/cifsd/ to the kernel. > > As I know, currently "cifs" is being used for the subdirectory name > > for historical reasons and to avoid confusions, even though the CIFS > > (SMB1) dialect is no longer recommended. > > I'm with Ralph. CIFS is history that we need to relegate to the past. Tom, and Ralph. Some background on the cifsd directory name: We discussed in length but we decided with cifsd to align with the current directory name cifs for the client. Just to align with current praxis defined by other filesystems, i.e. nfs. which has nfs for client, nfsd for server and nfs_common for shared cod and definitions. Once cifsd lands in the kernel I expect we will start building cifs_common for this purpose. An alternative would have been to rename the current fs/cifs tree to fs/ksmb but renaming an entire directory tree felt it might get pushback. In the end we thought that the module name, that is user visible and there it is important we call it smb3 something but the source tree is not end-user visible so it was less important what the name was. (the alternative ending up with fs/cifs fs/ksmbd and fs/cifs_common would have been terrible) regards ronnie sahlberg > > I also agree that wrappers around core memory allocators are to > be avoided. > > Tom.