Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] switch brd

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 2b9ecd03 60ad2340

+2 -3
+2 -3
drivers/block/brd.c
··· 340 340 } 341 341 #endif 342 342 343 - static int brd_ioctl(struct inode *inode, struct file *file, 343 + static int brd_ioctl(struct block_device *bdev, fmode_t mode, 344 344 unsigned int cmd, unsigned long arg) 345 345 { 346 346 int error; 347 - struct block_device *bdev = inode->i_bdev; 348 347 struct brd_device *brd = bdev->bd_disk->private_data; 349 348 350 349 if (cmd != BLKFLSBUF) ··· 375 376 376 377 static struct block_device_operations brd_fops = { 377 378 .owner = THIS_MODULE, 378 - .__ioctl = brd_ioctl, 379 + .locked_ioctl = brd_ioctl, 379 380 #ifdef CONFIG_BLK_DEV_XIP 380 381 .direct_access = brd_direct_access, 381 382 #endif