Whamcloud - gitweb
LU-14195 lustre: remove 'fs' from 'struct lvfs_run_ctxt' 10/40910/3
authorMr NeilBrown <neilb@suse.de>
Wed, 9 Dec 2020 02:11:18 +0000 (13:11 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:06:23 +0000 (21:06 +0000)
commitde60e7767c0e3ba38f4de37e46328012780b6d19
tree45933760a3ad5c3552308d76c6099a51a8eaeb2e
parentd0337cab8e845efcdbfb9e26e573feb18f28e303
LU-14195 lustre: remove 'fs' from 'struct lvfs_run_ctxt'

The code protected by push_ctxt() and pop_ctx() never tries to access
any user-space data, so call set_fs() to KERNEL_DS is not needed.

So remove the 'fs' field and related code.

In linux-5.10 this code fails to compile as set_fs() is deprecated.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Idb2744d656dc4228375b6da54673e38cc1c112f5
Reviewed-on: https://review.whamcloud.com/40910
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lvfs.h
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/ptlrpc/sec_ctx.c