OSDN Git Service

btrfs: Simplify btrfs_file_llseek
authorNikolay Borisov <nborisov@suse.com>
Fri, 27 Sep 2019 10:23:17 +0000 (13:23 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:59 +0000 (12:46 +0100)
commit2034f3b470ccfd4103737cf4d2a25a52ce9ad002
treee9163a8945d34b559698e6c4aa136bf1e08e3998
parentd79b7c26b12279038b8b84bfcbe7bb3e53382b3f
btrfs: Simplify btrfs_file_llseek

Handle SEEK_END/SEEK_CUR in a single 'default' case by directly
returning from generic_file_llseek. This makes the 'out' label
redundant.  Finally return directly the vale from vfs_setpos. No
semantic changes.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c