# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.403.129.5 -> 1.403.129.6 # drivers/hotplug/pci_hotplug_core.c 1.17 -> 1.18 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/07/07 greg@kroah.com 1.403.129.6 # PCI Hotplug: fix i_nlink for root inode in pcihpfs # -------------------------------------------- # diff -Nru a/drivers/hotplug/pci_hotplug_core.c b/drivers/hotplug/pci_hotplug_core.c --- a/drivers/hotplug/pci_hotplug_core.c Wed Jul 24 12:00:11 2002 +++ b/drivers/hotplug/pci_hotplug_core.c Wed Jul 24 12:00:11 2002 @@ -109,6 +109,9 @@ case S_IFDIR: inode->i_op = &pcihpfs_dir_inode_operations; inode->i_fop = &simple_dir_operations; + + /* directory inodes start off with i_nlink == 2 (for "." entry) */ + inode->i_nlink++; break; } }