From: Dave Chinner Date: Wed, 3 Apr 2013 05:11:30 +0000 (+1100) Subject: xfs: buffer type overruns blf_flags field X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~58^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61fe135c1dde112f483bba01d645debd881b5428;p=pandora-kernel.git xfs: buffer type overruns blf_flags field The buffer type passed to log recvoery in the buffer log item overruns the blf_flags field. I had assumed that flags field was a 32 bit value, and it turns out it is a unisgned short. Therefore having 19 flags doesn't really work. Convert the buffer type field to numeric value, and use the top 5 bits of the flags field for it. We currently have 17 types of buffers, so using 5 bits gives us plenty of room for expansion in future.... Signed-off-by: Dave Chinner Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- Reading git-diff-tree failed