Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2603189pxj; Mon, 14 Jun 2021 02:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPXprhKQPnAw2nBgMAVCDiuFM6MWwI3v7xS07kUrbkdoKHYz64zE2k+QITsEUaF1awql70 X-Received: by 2002:a17:906:5053:: with SMTP id e19mr14806314ejk.251.1623663996630; Mon, 14 Jun 2021 02:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623663996; cv=none; d=google.com; s=arc-20160816; b=kXAiT7lN+ThU+S/59jETVZSLCGSJXsG+BaDWFqyn67iIIupgMAqgUadrXy64qarhVp ZcSKo03sRKD58x/GUwsQOsrLbaf5iMBGx3CRTrmjMTAzIdGXOaPu6gmIM3zH+X+VPban yUlaO22XmgF53IX0oV98Q3Dplz3/CSuIEk9AL17J50/WcCjCxKr04Zz5c/3W84ZzBqpX etGbrTSFLucetE+bZOT8lFJOcX/mCTd3GcgAg2mdTAxQfI/cZOUHoJAiMMA+K6oQ72en w+dn2VIgOflS31LmhwZba5v/jBOosqyXYWPI/I2gdxQrKL+bK7eegeSnjZT35/VhnBR7 3GTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=kP7GTrlZ1Lv8pbIRCpbLNMCW525kd0MX52U2JVhGjrY=; b=ll7Wu3G1HxMVsB0+HyFwRDclN3McgVMbwJZ919c56+n12lBCpDvpaOGgPqbW6hwngS O4dYllM+Vot3u4S9qELE41NAHXy3NkBXQ5OBfZd0QbiSpILVQjLvZXfCIIVSIseYJk6W eRgsnFoJ34bgvDwO3MmcYF7SN+OVAigpoHbSUWXIPhfH7ZFB4Hd66yvI1tjzDr4xk/8o /2gLj754ZsZJ9CurJS4yrcIea10djKtN4LPQ40hrj9za4gIZYHlVvBeOoPWGCBMG1zjM hImuhTclXOOsFF71gx998C0sy7kOfSzbW5uhHRzsLZYCUjg+YzxZOTMJ0LphDtUKp9Y7 7c+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=hA3yhHVu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=QpzupR4Z; 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 cq9si11140683edb.321.2021.06.14.02.46.13; Mon, 14 Jun 2021 02:46:36 -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=@kroah.com header.s=fm1 header.b=hA3yhHVu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=QpzupR4Z; 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 S232769AbhFNJq2 (ORCPT + 99 others); Mon, 14 Jun 2021 05:46:28 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:40669 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232630AbhFNJq2 (ORCPT ); Mon, 14 Jun 2021 05:46:28 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 955AA1758; Mon, 14 Jun 2021 05:44:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 14 Jun 2021 05:44:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm1; bh=k P7GTrlZ1Lv8pbIRCpbLNMCW525kd0MX52U2JVhGjrY=; b=hA3yhHVusaaIadWQi 7lPU3Pu8Li2SH9oSGCcpWN0FHq6IunJ2mZHAWMNav+jK5Q6Yj8IsUxj3dufKGhwV oFP0qJu1oU8d8xv2fKtw70cSHRngG5pVMF4oU7SiY2efLk7z7UNbEBHcdsKMTFEm AEB5FCp1dSbBnKHm5+gP8a2t8Wl6hj8XJ6+YOvu7jobQEw4+cCUKAilH9OcaS5fO Ux4NjDxI7GayEjbJHXhs/bLlKLRhoJiNbLBfRdTzdzyhiEu1kUmhkJf9XlhVv+rC AfpfBeSIHnctvPnbN5/2mbt2gr++IwRwN/WGqSEE+vfM+1yMhk750Y1EYsoCUwr4 vXJgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=kP7GTrlZ1Lv8pbIRCpbLNMCW525kd0MX52U2JVhGj rY=; b=QpzupR4ZQ35Jk6Q3cWChtS2E9D3/UnZzdw0XZLZXi2++31nfvxLyn1O+Y lSuNmut0Qrikvc//ylHfNUrQB+7bG2jOQ+vdbZPeDnhAAb65P5w3v8F8Nct+6EC6 vjl4fM4MDZ8cyv4iH/wwcZIHpqkqJRDW0sgpG38+Ux7vGxFtbRVK9vOHpvwfod0+ st04M5oakWyukaEve0GIMlIu08AZ4M7TZDn14qFZ5I9bnphlykCfeSMsNzhxntXx r2z2z0onkVHSTYh5uR6L91eKoy6EzxJd8u2Lvy0JPURy8Bn6yhfZ9Qq8lYQL9qt9 YmeE/lQixrPVAfzTaIe5zkaTFR+6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvhedgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeevtdeileeuteeggefgueefhfevgfdttefgtefgtddvge ejheeiuddvtdekffehffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 14 Jun 2021 05:44:16 -0400 (EDT) Date: Mon, 14 Jun 2021 11:44:14 +0200 From: Greg KH To: sieberf@amazon.com Cc: sj38.park@gmail.com, Jonathan.Cameron@huawei.com, acme@kernel.org, akpm@linux-foundation.org, alexander.shishkin@linux.intel.com, amit@kernel.org, benh@kernel.crashing.org, brendanhiggins@google.com, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, elver@google.com, fan.du@intel.com, foersleo@amazon.de, gthelen@google.com, guoju.fgj@alibaba-inc.com, linux-damon@amazon.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mgorman@suse.de, minchan@kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, riel@surriel.com, rientjes@google.com, rostedt@goodmis.org, rppt@kernel.org, shakeelb@google.com, shuah@kernel.org, sjpark@amazon.de, snu@amazon.de, vbabka@suse.cz, vdavydov.dev@gmail.com, zgf574564920@gmail.com Subject: Re: [PATCH v29 09/13] mm/damon/dbgfs: Support multiple contexts Message-ID: References: <20210520075629.4332-10-sj38.park@gmail.com> <98a75d0c-2d1a-807e-050b-fb8e7d92f447@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <98a75d0c-2d1a-807e-050b-fb8e7d92f447@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 14, 2021 at 11:30:12AM +0200, sieberf@amazon.com wrote: > +??? new_dir = debugfs_create_dir(name, root); > +??? dbgfs_dirs[dbgfs_nr_ctxs] = new_dir; > > debugfs_create_dir might return ERR_PTR, should this be checked? No. Why do you care, the logic will keep on working afterward even if that were to happen. thanks, greg k-h