aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-05-05 22:11:03 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-07 02:16:31 -0400
commit4385bab128911df14ab25f0b5ae1a48d7b53dd94 (patch)
treed8c6f5557f09ebdf294eaba7eba01a140f8da78a /fs/ext3/super.c
parentdb2a144bedd58b3dcf19950c2f476c58c9f39d18 (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/ext3/super.c')
-rw-r--r--fs/ext3/super.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 3dc48cc8b6eb..6356665a74bb 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -362,22 +362,19 @@ fail:
362/* 362/*
363 * Release the journal device 363 * Release the journal device
364 */ 364 */
365static int ext3_blkdev_put(struct block_device *bdev) 365static void ext3_blkdev_put(struct block_device *bdev)
366{ 366{
367 return blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); 367 blkdev_put(bdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL);
368} 368}
369 369
370static int ext3_blkdev_remove(struct ext3_sb_info *sbi) 370static void ext3_blkdev_remove(struct ext3_sb_info *sbi)
371{ 371{
372 struct block_device *bdev; 372 struct block_device *bdev;
373 int ret = -ENODEV;
374
375 bdev = sbi->journal_bdev; 373 bdev = sbi->journal_bdev;
376 if (bdev) { 374 if (bdev) {
377 ret = ext3_blkdev_put(bdev); 375 ext3_blkdev_put(bdev);
378 sbi->journal_bdev = NULL; 376 sbi->journal_bdev = NULL;
379 } 377 }
380 return ret;
381} 378}
382 379
383static inline struct inode *orphan_list_entry(struct list_head *l) 380static inline struct inode *orphan_list_entry(struct list_head *l)