Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db19272e authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: always revalidate hardlinked inodes when using noserverino



The old cifs_revalidate logic always revalidated hardlinked inodes.
This hack allowed CIFS to pass some connectathon tests when server inode
numbers aren't used (basic test7, in particular).

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent ade275c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1528,6 +1528,11 @@ cifs_inode_needs_reval(struct inode *inode)
	if (time_after_eq(jiffies, cifs_i->time + HZ))
		return true;

	/* hardlinked files w/ noserverino get "special" treatment */
	if (!(CIFS_SB(inode->i_sb)->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) &&
	    S_ISREG(inode->i_mode) && inode->i_nlink != 1)
		return true;

	return false;
}