Skip to contentSkip to conversation

PATCH 2.5.2.6: fix umsdos build

PATCH Jeff Garzik 1 participant 1 message Jan 2, 2002

lore
Share & tools
lore
#0 lore raw

add two calls to kdev_same

Signature · 3 lines
Jeff Garzik      | Only so many songs can be sung
Building 1024    | with two lips, two lungs, and one tongue.
MandrakeSoft     |         - nomeansno

Index: fs/umsdos/inode.c
===================================================================
RCS file: /cvsroot/gkernel/linux_2_5/fs/umsdos/inode.c,v retrieving revision 1.1.1.1

umsdos/inode.c +2 -2
diff -u -r1.1.1.1 inode.c
@@ -49,7 +49,7 @@
 void UMSDOS_put_super (struct super_block *sb)
 {
 	Printk ((KERN_DEBUG "UMSDOS_put_super: entering\n"));
-	if (saved_root && pseudo_root && sb->s_dev == ROOT_DEV) {
+	if (saved_root && pseudo_root && kdev_same(sb->s_dev, ROOT_DEV)) {
 		shrink_dcache_parent(saved_root);
 		dput(saved_root);
 		saved_root = NULL;
@@ -414,7 +414,7 @@
 	 * must check like this, because we can be used with initrd
 	 */
 		
-	if (sb->s_dev != ROOT_DEV)
+	if (!kdev_same(sb->s_dev, ROOT_DEV))
 		goto out_noroot;
 
 	/*