Loading fs/btrfs/volumes.c +5 −3 Original line number Diff line number Diff line Loading @@ -903,12 +903,14 @@ static void free_device_rcu(struct rcu_head *head) static void btrfs_close_bdev(struct btrfs_device *device) { if (device->bdev && device->writeable) { if (!device->bdev) return; if (device->writeable) { sync_blockdev(device->bdev); invalidate_bdev(device->bdev); } if (device->bdev) blkdev_put(device->bdev, device->mode); } Loading Loading
fs/btrfs/volumes.c +5 −3 Original line number Diff line number Diff line Loading @@ -903,12 +903,14 @@ static void free_device_rcu(struct rcu_head *head) static void btrfs_close_bdev(struct btrfs_device *device) { if (device->bdev && device->writeable) { if (!device->bdev) return; if (device->writeable) { sync_blockdev(device->bdev); invalidate_bdev(device->bdev); } if (device->bdev) blkdev_put(device->bdev, device->mode); } Loading