search for: close_all_devices

Displaying 1 result from an estimated 1 matches for "close_all_devices".

2013 Mar 18
0
[PATCH] Btrfs-progs: fix memory leaks on cleanup
...+++++++++++++++++++++----- extent-tree.c | 9 +++++++++ 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/disk-io.c b/disk-io.c index da7086f..72b33da 100644 --- a/disk-io.c +++ b/disk-io.c @@ -1269,23 +1269,38 @@ int write_ctree_super(struct btrfs_trans_handle *trans, static int close_all_devices(struct btrfs_fs_info *fs_info) { struct list_head *list; - struct list_head *next; struct btrfs_device *device; - return 0; - list = &fs_info->fs_devices->devices; - list_for_each(next, list) { - device = list_entry(next, struct btrfs_device, dev_list); + while (!list_empty(list...