Whamcloud - gitweb
LU-14195 lustre: remove 'fs' from 'struct lvfs_run_ctxt'
authorMr NeilBrown <neilb@suse.de>
Tue, 6 Jul 2021 00:10:15 +0000 (17:10 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 13 Jul 2021 08:22:58 +0000 (08:22 +0000)
commitcca1a25d3f011b6868a75c95298314546f5a14bf
tree4b4f40ccb6460c6632f0d8b6b1bc565ed179b2d9
parent9d7ac1d1a1029d3f9300f21b82d9f3026959f3ba
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.

Lustre-change: https://review.whamcloud.com/40910
Lustre-commit: de60e7767c0e3ba38f4de37e46328012780b6d19

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