ruanmeisi 8d576e5e87 fuse: nlookup missing decrement in fuse_direntplus_link
commit b8bd342d50cbf606666488488f9fea374aceb2d5 upstream.

During our debugging of glusterfs, we found an Assertion failed error:
inode_lookup >= nlookup, which was caused by the nlookup value in the
kernel being greater than that in the FUSE file system.

The issue was introduced by fuse_direntplus_link, where in the function,
fuse_iget increments nlookup, and if d_splice_alias returns failure,
fuse_direntplus_link returns failure without decrementing nlookup
https://github.com/gluster/glusterfs/pull/4081

Signed-off-by: ruanmeisi <ruan.meisi@zte.com.cn>
Fixes: 0b05b18381ee ("fuse: implement NFS-like readdirplus support")
Cc: <stable@vger.kernel.org> # v3.9
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 437d8898fbf40b92516aef697b5638acccb7a6f9)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-01-18 11:22:33 +00:00
..
2019-08-06 19:05:23 +02:00
2023-11-28 16:45:44 +00:00
2023-08-30 16:35:09 +02:00
2023-02-22 12:46:05 +01:00
2023-09-23 10:47:05 +02:00
2020-03-11 18:02:43 +01:00
2023-01-18 09:26:35 +01:00
2021-12-14 10:16:55 +01:00