mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 02:23:05 +00:00
Freeing an AR buffer page just to allocate a new page immediately afterwards is not only a pointless effort but also dangerous because the allocation can fail, which would result in an oops later. Split ar_context_add_page() into two functions so that we can reuse the old page directly. Signed-off-by: Clemens Ladisch <[email protected]> Tested-by: Maxim Levitsky <[email protected]> Signed-off-by: Stefan Richter <[email protected]>