From: Sage Weil Date: Tue, 13 Dec 2011 17:19:26 +0000 (-0800) Subject: ceph: fix SEEK_CUR, SEEK_SET regression X-Git-Tag: v3.2-rc6~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a82c47aa84ab22cb5969a44105cca5358879d21;p=pandora-kernel.git ceph: fix SEEK_CUR, SEEK_SET regression Commit 06222e491e663dac939f04b125c9dc52126a75c4 got the if wrong so that it always evaluates as true. This is semantically harmless, but makes SEEK_CUR and SEEK_SET needlessly query the server. Rewrite the if to explicitly enumerate the cases we DO need a valid i_size to make this code less fragile. Reported-by: Roel Kluin Signed-off-by: Sage Weil --- Reading git-diff-tree failed