Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752372AbbHOHtQ (ORCPT ); Sat, 15 Aug 2015 03:49:16 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:33318 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbbHOHtO (ORCPT ); Sat, 15 Aug 2015 03:49:14 -0400 Date: Sat, 15 Aug 2015 13:48:50 +0600 From: Alexander Kuleshov To: Andrew Morton Cc: Tony Luck , Pekka Enberg , Mel Gorman , Baoquan He , Tang Chen , Robin Holt , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] mm/memblock: validate the creation of debugfs files Message-ID: <20150815074850.GA2866@localhost> References: <1439579011-14918-1-git-send-email-kuleshovmail@gmail.com> <20150814141944.4172fee6c9d7ae02a6258c80@linux-foundation.org> <20150815072636.GA2539@localhost> <20150815003830.c87afaff.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150815003830.c87afaff.akpm@linux-foundation.org> X-Operating-System: Linux X-Date: Sat Aug 15 13:43:45 ALMT 2015 User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 757 Lines: 15 On 08-15-15, Andrew Morton wrote: > Yes, I agree that if memblock's debugfs_create_file() fails, we want to > know about it because something needs fixing. But that's true of > all(?) debugfs_create_file callsites, so it's a bit silly to add > warnings to them all. Why not put the warning into > debugfs_create_file() itself? Good idea, but there are already some debugfs_create_file calls with checks and warning, if these checks failed. I don't know how many, but I saw it. Double warning is not good too. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/