diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-05 22:11:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-07 02:16:31 -0400 |
commit | 4385bab128911df14ab25f0b5ae1a48d7b53dd94 (patch) | |
tree | d8c6f5557f09ebdf294eaba7eba01a140f8da78a /fs/ext4 | |
parent | db2a144bedd58b3dcf19950c2f476c58c9f39d18 (diff) |
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 <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 24a146bde742..94cc84db7c9a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -703,22 +703,19 @@ fail: | |||
703 | /* | 703 | /* |
704 | * Release the journal device | 704 | * Release the journal device |
705 | */ | 705 | */ |
706 | static int ext4_blkdev_put(struct block_device *bdev) | 706 | static void ext4_blkdev_put(struct block_device *bdev) |
707 | { | 707 | { |
708 | return blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); | 708 | blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); |
709 | } | 709 | } |
710 | 710 | ||
711 | static int ext4_blkdev_remove(struct ext4_sb_info *sbi) | 711 | static void ext4_blkdev_remove(struct ext4_sb_info *sbi) |
712 | { | 712 | { |
713 | struct block_device *bdev; | 713 | struct block_device *bdev; |
714 | int ret = -ENODEV; | ||
715 | |||
716 | bdev = sbi->journal_bdev; | 714 | bdev = sbi->journal_bdev; |
717 | if (bdev) { | 715 | if (bdev) { |
718 | ret = ext4_blkdev_put(bdev); | 716 | ext4_blkdev_put(bdev); |
719 | sbi->journal_bdev = NULL; | 717 | sbi->journal_bdev = NULL; |
720 | } | 718 | } |
721 | return ret; | ||
722 | } | 719 | } |
723 | 720 | ||
724 | static inline struct inode *orphan_list_entry(struct list_head *l) | 721 | static inline struct inode *orphan_list_entry(struct list_head *l) |