From: Christoph Hellwig Date: Thu, 21 Aug 2014 16:09:29 +0000 (-0500) Subject: pnfs/blocklayout: correctly decrement extent length X-Git-Tag: fixes-for-v3.18-merge-window~10^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=921b81a8cd5a4acc2a009778d13eedd377362c4c;p=pandora-kernel.git pnfs/blocklayout: correctly decrement extent length When we do non-page sized reads we can underflow the extent_length variable and read incorrect data. Fix the extent_length calculation and change to defensive <= checks for the extent length in the read and write path. Signed-off-by: Christoph Hellwig Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed