]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: don't increment nlink in link()
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:02 +0000 (17:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Oct 2021 07:45:26 +0000 (09:45 +0200)
commit97f044f690bac2b094bfb7fb2d177ef946c85880
tree2b93b9d464aee12ccea3701a94ea37db5b68ca7e
parentcefd1b83275d4c587bdeb2fe7aed07908642f875
fuse: don't increment nlink in link()

The fuse_iget() call in create_new_entry() already updated the inode with
all the new attributes and incremented the attribute version.

Incrementing the nlink will result in the wrong count.  This wasn't noticed
because the attributes were invalidated right after this.

Updating ctime is still needed for the writeback case when the ctime is not
refreshed.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c