From c01add08ee6832dfa1445754221476978baba746 Mon Sep 17 00:00:00 2001 From: Dmitrii Merkurev Date: Thu, 23 Jun 2022 18:31:07 +0000 Subject: [PATCH] UPSTREAM: Revert "ANDROID: fuse-bpf: use target instead of parent inode to execute backing revalidate" This reverts commit b610eff230f2ce92fd48502d71ad0993792f73d3. Reason for revert: I broke BPF calling logic with this one. Possible fix is here: https://android-review.googlesource.com/c/kernel/common/+/2132134 but we're still discussing possible way to go there: go/fuse-bpf-revalidate-problem Change-Id: I517941a2c341999dc8133b93cf045ec67bcf8a9e Signed-off-by: Dmitrii Merkurev --- fs/fuse/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 5a1579b62566..ceda69466011 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -212,7 +212,7 @@ static int fuse_dentry_revalidate(struct dentry *entry, unsigned int flags) { struct fuse_err_ret fer; - fer = fuse_bpf_backing(inode, + fer = fuse_bpf_backing(entry->d_parent->d_inode, struct fuse_lookup_io, fuse_lookup_initialize, fuse_revalidate_backing,