From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbcBHGix (ORCPT ); Mon, 8 Feb 2016 01:38:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43810 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbcBHGiw (ORCPT ); Mon, 8 Feb 2016 01:38:52 -0500 Date: Sun, 7 Feb 2016 22:38:51 -0800 From: Greg Kroah-Hartman To: Roman Pen Cc: linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/3] debugfs: fix automount inode i_nlink references Message-ID: <20160208063851.GB12507@kroah.com> References: <1449751634-7887-1-git-send-email-r.peniaev@gmail.com> <1449751634-7887-2-git-send-email-r.peniaev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449751634-7887-2-git-send-email-r.peniaev@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2015 at 01:47:12PM +0100, Roman Pen wrote: > Directory inodes should start off with i_nlink == 2 (for "." entry). > Of course the same rule should be applied to automount dentries for > child and parent inodes as well. > > Also now automount dentry does fsnotify_mkdir. > > Without this patch kernel complains when sees i_nlink == 0: How can the kernel see this? What did you do to trigger this? thanks, greg k-h