Whamcloud - gitweb
LU-17453 llite: use dget_parent to access dentry.d_parent 57/53757/10
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 5 Feb 2024 06:47:49 +0000 (13:47 +0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:14:19 +0000 (07:14 +0000)
commit845539a4aa7ca30dd2192fd84ba2a9e90b5c2284
tree7bc9a8379d0f6e7a6eaaf2b0b5f7f2462732e5d8
parent3faa31e59c8d07dd7bea5433ea6782f1e6bbab52
LU-17453 llite: use dget_parent to access dentry.d_parent

Use dget_parent() to aquire the d_parent member of a dentry
to ensure dentry is valid while it is accessed.

HPE-bug-id: LUS-11889
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Icb0a25ece5a3a3d50da076708fcd631176652a1b
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53757
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/dcache.c
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/pcc.c
lustre/llite/statahead.c
lustre/llite/xattr.c