Commit 621d5c9e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] bdev: blkdev_put() cleanup

From: viro@parcelfarce.linux.theplanet.co.uk <viro@parcelfarce.linux.theplanet.co.uk>

Trivial cleanup in blkdev_put() - replace bdev->bd_inode->i_bdev with bdev.
parent a1864a75
...@@ -696,7 +696,7 @@ int blkdev_put(struct block_device *bdev, int kind) ...@@ -696,7 +696,7 @@ int blkdev_put(struct block_device *bdev, int kind)
switch (kind) { switch (kind) {
case BDEV_FILE: case BDEV_FILE:
case BDEV_FS: case BDEV_FS:
sync_blockdev(bd_inode->i_bdev); sync_blockdev(bdev);
break; break;
} }
kill_bdev(bdev); kill_bdev(bdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment