From 921b81a8cd5a4acc2a009778d13eedd377362c4c Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 21 Aug 2014 11:09:29 -0500 Subject: [PATCH] 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-format-patch failed