summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-04-06 12:21:45 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 10:57:31 -0700
commit3106d46f51a1a72fdbf071ebc0800a9bcfcbc544 (patch)
treebd2045da6a476e942b1bbb004c3065124e856464 /fs
parent2753133eb3321feb81dcb9c88141dd2aa5973ee1 (diff)
downloadlinux-3.10-3106d46f51a1a72fdbf071ebc0800a9bcfcbc544.tar.gz
linux-3.10-3106d46f51a1a72fdbf071ebc0800a9bcfcbc544.tar.bz2
linux-3.10-3106d46f51a1a72fdbf071ebc0800a9bcfcbc544.zip
the overdue removal of the mount/umount uevents
This patch contains the overdue removal of the mount/umount uevents. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/super.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/super.c b/fs/super.c
index 60b1e50cbf5..8341e4e1d73 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -725,16 +725,6 @@ static int test_bdev_super(struct super_block *s, void *data)
return (void *)s->s_bdev == data;
}
-static void bdev_uevent(struct block_device *bdev, enum kobject_action action)
-{
- if (bdev->bd_disk) {
- if (bdev->bd_part)
- kobject_uevent(&bdev->bd_part->kobj, action);
- else
- kobject_uevent(&bdev->bd_disk->kobj, action);
- }
-}
-
int get_sb_bdev(struct file_system_type *fs_type,
int flags, const char *dev_name, void *data,
int (*fill_super)(struct super_block *, void *, int),
@@ -782,7 +772,6 @@ int get_sb_bdev(struct file_system_type *fs_type,
}
s->s_flags |= MS_ACTIVE;
- bdev_uevent(bdev, KOBJ_MOUNT);
}
return simple_set_mnt(mnt, s);
@@ -801,7 +790,6 @@ void kill_block_super(struct super_block *sb)
{
struct block_device *bdev = sb->s_bdev;
- bdev_uevent(bdev, KOBJ_UMOUNT);
generic_shutdown_super(sb);
sync_blockdev(bdev);
close_bdev_excl(bdev);