mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
make blkdev_put() return void
same story as with the previous patches - note that return value of blkdev_close() is lost, since there's nowhere the caller (__fput()) could return it to. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
db2a144bed
commit
4385bab128
8 changed files with 22 additions and 46 deletions
|
|
@ -703,22 +703,19 @@ fail:
|
|||
/*
|
||||
* Release the journal device
|
||||
*/
|
||||
static int ext4_blkdev_put(struct block_device *bdev)
|
||||
static void ext4_blkdev_put(struct block_device *bdev)
|
||||
{
|
||||
return blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL);
|
||||
blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL);
|
||||
}
|
||||
|
||||
static int ext4_blkdev_remove(struct ext4_sb_info *sbi)
|
||||
static void ext4_blkdev_remove(struct ext4_sb_info *sbi)
|
||||
{
|
||||
struct block_device *bdev;
|
||||
int ret = -ENODEV;
|
||||
|
||||
bdev = sbi->journal_bdev;
|
||||
if (bdev) {
|
||||
ret = ext4_blkdev_put(bdev);
|
||||
ext4_blkdev_put(bdev);
|
||||
sbi->journal_bdev = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline struct inode *orphan_list_entry(struct list_head *l)
|
||||
|
|
|
|||
Loading…
Reference in a new issue