ceph: convert to generic_file_llseek
authorJeff Layton <jlayton@kernel.org>
Tue, 7 Jun 2022 15:05:49 +0000 (11:05 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 2 Aug 2022 22:54:12 +0000 (00:54 +0200)
commite82145033547dac360bf20e960cf9adefc50b72d
tree87f7c9609d89fb042a65c09b81392c1c78b957d8
parent1b7587d69ea7b8c350195392bfd30a0f31374ae4
ceph: convert to generic_file_llseek

There's no reason we need to lock the inode for write in order to handle
an llseek. I suspect this should have been dropped in 2013 when we
stopped doing vmtruncate in llseek.

With that gone, ceph_llseek is functionally equivalent to
generic_file_llseek, so just call that after getting the size.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luís Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c