btrfs: use list_for_each_entry_safe in free-space-cache.c
authorGeliang Tang <geliangtang@163.com>
Fri, 18 Dec 2015 14:17:00 +0000 (22:17 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 13:39:09 +0000 (14:39 +0100)
commit7ae1681e126919e7119cebebde1d42df8d7a49b9
tree516c422276938efc71092e0b193ba3b8ed8791f7
parentb69f2bef484844ccd9038a850cdcf562afff9d08
btrfs: use list_for_each_entry_safe in free-space-cache.c

Use list_for_each_entry_safe() instead of list_for_each_safe() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/free-space-cache.c