On Thu, 8 Jun 2023 at 10:47, Jiachen Zhang <zhangjiachen.jaycee@xxxxxxxxxxxxx> wrote: > > FUSE remote locking code paths never add any locking state to > inode->i_flctx, so the locks_remove_posix() function called on > file close will return without calling fuse_setlk(). > > Therefore, as the if statement to be removed in this commit will > always be false, remove it for clearness. > > Fixes: 7142125937e1 ("[PATCH] fuse: add POSIX file locking support") > Signed-off-by: Jiachen Zhang <zhangjiachen.jaycee@xxxxxxxxxxxxx> Applied, thanks. Miklos