From: Steven Rostedt Date: Wed, 6 May 2009 14:26:45 +0000 (-0400) Subject: ring-buffer: remove unneeded conditional in rb_reserve_next X-Git-Tag: v2.6.31-rc1~401^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e7abf1c62941ebb7a1416cbc62392c8a0902625;p=pandora-kernel.git ring-buffer: remove unneeded conditional in rb_reserve_next The code in __rb_reserve_next checks on page overflow if it is the original commiter and then resets the page back to the original setting. Although this is fine, and the code is correct, it is a bit fragil. Some experimental work I did breaks it easily. The better and more robust solution is to have all commiters that overflow the page, simply subtract what they added. [ Impact: more robust ring buffer account management ] Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed