Commit 970ea37
committed
btrfs: pass a valid extent map cache pointer to __get_extent_map()
We can pass a valid em cache pointer down to __get_extent_map() and
drop the validity check. This avoids the special case, the call stacks
are simple:
btrfs_read_folio
btrfs_do_readpage
__get_extent_map
extent_readahead
contiguous_readpages
btrfs_do_readpage
__get_extent_map
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 5a8a57f commit 970ea37
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
970 | 970 | | |
971 | 971 | | |
972 | 972 | | |
973 | | - | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
974 | 976 | | |
975 | 977 | | |
976 | 978 | | |
| |||
983 | 985 | | |
984 | 986 | | |
985 | 987 | | |
986 | | - | |
| 988 | + | |
987 | 989 | | |
988 | 990 | | |
989 | 991 | | |
| |||
1154 | 1156 | | |
1155 | 1157 | | |
1156 | 1158 | | |
| 1159 | + | |
1157 | 1160 | | |
1158 | 1161 | | |
1159 | 1162 | | |
1160 | 1163 | | |
1161 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1162 | 1167 | | |
1163 | 1168 | | |
1164 | 1169 | | |
| |||
1176 | 1181 | | |
1177 | 1182 | | |
1178 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
1179 | 1186 | | |
1180 | 1187 | | |
1181 | 1188 | | |
| |||
0 commit comments