Files
linux/fs/fuse
Roel Kluin b0c1dfb82b fuse: fix llseek bug
commit b48c6af208 upstream.

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 <mszeredi@suse.cz>
CC: Josef Bacik <josef@redhat.com>
CC: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-21 12:58:34 -08:00
..
2010-10-29 04:16:28 -04:00
2011-12-21 12:58:34 -08:00
2011-12-21 12:58:34 -08:00
2011-09-12 11:47:10 -07:00
2009-01-22 13:15:55 +03:00