From: Dave Chinner Date: Thu, 16 Apr 2015 11:58:21 +0000 (+1000) Subject: xfs: move DIO mapping size calculation X-Git-Tag: omap-for-v4.1/fixes-rc1~44^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fdca9c21198b2c2869086ac3629612492476f28;p=pandora-kernel.git xfs: move DIO mapping size calculation The mapping size calculation is done last in __xfs_get_blocks(), but we are going to need the actual mapping size we will use to map the direct IO correctly in xfs_map_direct(). Factor out the calculation for code clarity, and move the call to be the first operation in mapping the extent to the returned buffer. Signed-off-by: Dave Chinner Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed