diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-02-08 18:25:17 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 15:09:34 +0200 |
commit | bf6d7d4900c0d0c15dcd1baa1b65e6519bf4abef (patch) | |
tree | af6cf80ca87a3cf2fa9004e514a130123ff372a3 /fs/btrfs/extent-tree.c | |
parent | 8f2ceaa7b42a6df21eed621b88037af2c4cd8257 (diff) |
btrfs: Remove invalid null checks from btrfs_cleanup_dirty_bgs
list_first_entry is essentially a wrapper over cotnainer_of. The latter
can never return null even if it's working on inconsistent list since it
will either crash or return some offset in the wrong struct.
Additionally, for the dirty_bgs list the iteration is done under
dirty_bgs_lock which ensures consistency of the list.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions