From: Roel Kluin Date: Tue, 13 Dec 2011 09:37:00 +0000 (+0100) Subject: fuse: fix llseek bug X-Git-Tag: v3.2-rc6~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b48c6af2086ab2ba8a9c9b6ce9ecb34592ce500c;p=pandora-kernel.git fuse: fix llseek bug The test in fuse_file_llseek() "not SEEK_CUR or not SEEK_SET" always evaluates to true. This was introduced in 3.1 by commit 06222e49 (fs: handle SEEK_HOLE/SEEK_DATA properly in all fs's that define their own llseek) and changed the behavior of SEEK_CUR and SEEK_SET to always retrieve the file attributes. This is a performance regression. Fix the test so that it makes sense. Signed-off-by: Miklos Szeredi CC: stable@vger.kernel.org CC: Josef Bacik CC: Al Viro --- Reading git-diff-tree failed