btrfs: Refactor main loop in extent_readpages