Re: [BK PATCH] PCI Hotplug changes for 2.5.25

From: Greg KH (greg@kroah.com)
Date: Sun Jul 07 2002 - 14:43:25 EST


For those people without BK, I'm including the patches here, like I've
been doing with the USB patches. They are also all available in my
kernel.org directory if you don't like patches through email :)

greg k-h

# 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.628 -> 1.629
# drivers/hotplug/pci_hotplug_core.c 1.17 -> 1.18
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/07 greg@kroah.com 1.629
# 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 Sun Jul 7 12:24:42 2002
+++ b/drivers/hotplug/pci_hotplug_core.c Sun Jul 7 12:24:42 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;
                 }
         }

-
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/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:18 EST