From: Jeff Liu Date: Sun, 18 Sep 2011 14:34:02 +0000 (-0400) Subject: BTRFS: Fix lseek return value for error X-Git-Tag: v3.1-rc7~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48802c8ae2a9d618ec734a61283d645ad527e06c;p=pandora-kernel.git BTRFS: Fix lseek return value for error The recent reworking of btrfs' lseek lead to incorrect values being returned. This adds checks for seeking beyond EOF in SEEK_HOLE and makes sure the error values come back correct. Andi Kleen also sent in similar patches. Signed-off-by: Jie Liu Reported-by: Andi Kleen Signed-off-by: Chris Mason --- Reading git-diff-tree failed