Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273831
b: refs/heads/master
c: 4c823cc
h: refs/heads/master
i:
  273829: c4751f1
  273827: efcaf7b
  273823: 9ed03d5
v: v3
  • Loading branch information
Ayan George authored and Jens Axboe committed Sep 21, 2011
1 parent b51fb0b commit 63b960b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a9c594422ecad912d6470888acdee9a1236ad68
refs/heads/master: 4c823cc3d568277aa6340d8df6981e34f4c4dee5
7 changes: 4 additions & 3 deletions trunk/drivers/block/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,11 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
return err;
}

static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev)
static int loop_clr_fd(struct loop_device *lo)
{
struct file *filp = lo->lo_backing_file;
gfp_t gfp = lo->old_gfp_mask;
struct block_device *bdev = lo->lo_device;

if (lo->lo_state != Lo_bound)
return -ENXIO;
Expand Down Expand Up @@ -1372,7 +1373,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode,
break;
case LOOP_CLR_FD:
/* loop_clr_fd would have unlocked lo_ctl_mutex on success */
err = loop_clr_fd(lo, bdev);
err = loop_clr_fd(lo);
if (!err)
goto out_unlocked;
break;
Expand Down Expand Up @@ -1583,7 +1584,7 @@ static int lo_release(struct gendisk *disk, fmode_t mode)
* In autoclear mode, stop the loop thread
* and remove configuration after last close.
*/
err = loop_clr_fd(lo, lo->lo_device);
err = loop_clr_fd(lo);
if (!err)
goto out_unlocked;
} else {
Expand Down

0 comments on commit 63b960b

Please sign in to comment.