diff mbox

[linux-cifs-client,1/3] cifs: always revalidate hardlinked inodes

Message ID 1274095138-3386-2-git-send-email-jlayton@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton May 17, 2010, 11:18 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index b35cb03..f52161a 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1511,6 +1511,10 @@  cifs_inode_needs_reval(struct inode *inode)
 	if (time_after_eq(jiffies, cifs_i->time + HZ))
 		return true;
 
+	/* hardlinked files get "special" treatment */
+	if (S_ISREG(inode->i_mode) && inode->i_nlink != 1)
+		return true;
+
 	return false;
 }