diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2011-12-13 10:37:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-21 12:58:34 -0800 |
commit | b0c1dfb82b43b53fb60104f7969b87b7c54cc832 (patch) | |
tree | 0e52fb0edf5ce62567613f2b07ea99b50c951065 /net/can | |
parent | 3425a017beef04b5152fb6c3c7b2b2768473ed21 (diff) |
fuse: fix llseek bug
commit b48c6af2086ab2ba8a9c9b6ce9ecb34592ce500c 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>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions