]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a9efbe57c3380f44b77470b2b82f040b7701652
treee9163a8945d34b559698e6c4aa136bf1e08e3998
parent305252cd88eae75a13e8f36fd20fbfb2daecadf5
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