From: Steven Rostedt Date: Thu, 11 Jun 2009 13:29:58 +0000 (-0400) Subject: ring-buffer: use BUF_PAGE_HDR_SIZE in calculating index X-Git-Tag: v2.6.31-rc1~95^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f470f8daea64bc03be1fe30c8c5df382295386;p=pandora-kernel.git ring-buffer: use BUF_PAGE_HDR_SIZE in calculating index The index of the event is found by masking PAGE_MASK to it and subtracting the header size. Currently the header size is calculate by PAGE_SIZE - BUF_PAGE_SIZE, when we already have a macro BUF_PAGE_HDR_SIZE to define it. If we want to change BUF_PAGE_SIZE to something less than filling the rest of the page (this is done for debugging), then we break the algorithm to find the index. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed