Re: partition sysfs OOPS in current GIT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Thursday, February 7, 2008 - 12:00 am

On Wed, Feb 06, 2008 at 10:39:44PM -0800, David Miller wrote:

Can you try this patch to see if it solves the oops, and that the file
is still there and works properly?

thanks,

greg k-h

---
 fs/partitions/check.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -353,11 +353,9 @@ void add_partition(struct gendisk *disk,
 	partition_sysfs_add_subdir(p);
 	p->dev.uevent_suppress = 0;
 	if (flags & ADDPART_FLAG_WHOLEDISK) {
-		static struct attribute addpartattr = {
-			.name = "whole_disk",
-			.mode = S_IRUSR | S_IRGRP | S_IROTH,
-		};
-		err = sysfs_create_file(&p->dev.kobj, &addpartattr);
+		static DEVICE_ATTR(whole_disk, S_IRUSR | S_IRGRP | S_IROTH,
+				   NULL, NULL);
+		err = device_create_file(&p->dev, &dev_attr_whole_disk);
 	}
 
 	/* suppress uevent if the disk supresses it */
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 4:26 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 4:31 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 4:37 pm)
Oops figures, Jan Engelhardt, (Wed Feb 6, 4:42 pm)
Re: Oops figures, David Miller, (Wed Feb 6, 4:47 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 4:48 pm)
Re: partition sysfs OOPS in current GIT, Andrew Morton, (Wed Feb 6, 4:57 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 4:59 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 5:02 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 5:07 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 5:09 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 5:29 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 9:06 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 10:47 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 11:05 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 11:38 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 11:38 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 11:39 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 11:42 pm)
Re: partition sysfs OOPS in current GIT, David Miller, (Wed Feb 6, 11:42 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 11:44 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Wed Feb 6, 11:58 pm)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 12:00 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 12:11 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 12:18 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 12:20 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 12:24 am)
Re: partition sysfs OOPS in current GIT, David Miller, (Thu Feb 7, 12:33 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 12:42 am)
Re: partition sysfs OOPS in current GIT, Greg KH, (Thu Feb 7, 12:43 am)