ring-buffer: Add rb_check_bpage in __rb_allocate_pages
authorQiujun Huang <hqjagain@gmail.com>
Thu, 15 Oct 2020 11:38:42 +0000 (19:38 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 14 Dec 2020 17:26:32 +0000 (12:26 -0500)
commit74e2afc6df5782ea34bc7ac350aeb206c3666f9a
treee2a10854beac02436f16a61cbe716fc223154aa5
parent82db909e6be667f2993802f3a1e86426cab57049
ring-buffer: Add rb_check_bpage in __rb_allocate_pages

It may be better to check each page is aligned by 4 bytes. The 2
least significant bits of the address will be used as flags.

Link: https://lkml.kernel.org/r/20201015113842.2921-1-hqjagain@gmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c