[PATCH 5.4 25/96] bpf: Improve bucket_log calculation logic