X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fblock_dev.c;h=575076c018f4789c3c5f313f56b7b09674604baf;hb=de326dbe0c8b61b81aab32970236ee9ee47d782a;hp=fc7028b685f29ab94d5db4ef26dbb897573c6af5;hpb=88d5a7bb75b5e8f600e79b16abaf008c7fdfd27d;p=karo-tx-linux.git diff --git a/fs/block_dev.c b/fs/block_dev.c index fc7028b685f2..575076c018f4 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -489,7 +489,7 @@ static void bdev_clear_inode(struct inode *inode) spin_unlock(&bdev_lock); } -static struct super_operations bdev_sops = { +static const struct super_operations bdev_sops = { .statfs = simple_statfs, .alloc_inode = bdev_alloc_inode, .destroy_inode = bdev_destroy_inode, @@ -1101,6 +1101,13 @@ static int __blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, int for_part); static int __blkdev_put(struct block_device *bdev, int for_part); +/* + * bd_mutex locking: + * + * mutex_lock(part->bd_mutex) + * mutex_lock_nested(whole->bd_mutex, 1) + */ + static int do_open(struct block_device *bdev, struct file *file, int for_part) { struct module *owner = NULL;