Btrfs: make sure we're not using obsolete code in btrfs_get_extent
There's code in btrfs_get_extent that should never be used. This patch turns a WARN_ON(1) into a BUG(), hoping we can remove the transaction code from btrfs_get_extent soon. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
This commit is contained in:
Родитель
4692cf58aa
Коммит
6bf7e080d5
|
@ -5022,7 +5022,7 @@ again:
|
||||||
}
|
}
|
||||||
flush_dcache_page(page);
|
flush_dcache_page(page);
|
||||||
} else if (create && PageUptodate(page)) {
|
} else if (create && PageUptodate(page)) {
|
||||||
WARN_ON(1);
|
BUG();
|
||||||
if (!trans) {
|
if (!trans) {
|
||||||
kunmap(page);
|
kunmap(page);
|
||||||
free_extent_map(em);
|
free_extent_map(em);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче