fuse: llseek optimize SEEK_CUR and SEEK_SET
authorMiklos Szeredi <mszeredi@suse.cz>
Tue, 13 Dec 2011 10:58:48 +0000 (11:58 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 13 Dec 2011 10:58:48 +0000 (11:58 +0100)
Use generic_file_llseek() instead of open coding the seek function.

i_mutex protection is only necessary for SEEK_END (and SEEK_HOLE, SEEK_DATA), so
move SEEK_CUR and SEEK_SET out from under i_mutex.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found