Searched refs:new_device (Results 1 – 1 of 1) sorted by relevance
538 struct btrfs_device *new_device; in __btrfs_close_devices() local551 new_device = kmalloc(sizeof(*new_device), GFP_NOFS); in __btrfs_close_devices()552 BUG_ON(!new_device); /* -ENOMEM */ in __btrfs_close_devices()553 memcpy(new_device, device, sizeof(*new_device)); in __btrfs_close_devices()554 new_device->name = kstrdup(device->name, GFP_NOFS); in __btrfs_close_devices()555 BUG_ON(device->name && !new_device->name); /* -ENOMEM */ in __btrfs_close_devices()556 new_device->bdev = NULL; in __btrfs_close_devices()557 new_device->writeable = 0; in __btrfs_close_devices()558 new_device->in_fs_metadata = 0; in __btrfs_close_devices()559 new_device->can_discard = 0; in __btrfs_close_devices()[all …]