patch-1.3.87 linux/fs/ext2/symlink.c

Next file: linux/fs/ncpfs/inode.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.86/linux/fs/ext2/symlink.c linux/fs/ext2/symlink.c
@@ -86,6 +86,10 @@
 		link = bh->b_data;
 	} else
 		link = (char *) inode->u.ext2_i.i_data;
+	if (!IS_RDONLY(inode)) {
+		inode->i_atime = CURRENT_TIME;
+		inode->i_dirt = 1;
+	}
 	current->link_count++;
 	error = open_namei (link, flag, mode, res_inode, dir);
 	current->link_count--;
@@ -122,6 +126,10 @@
 	while (i < buflen && (c = link[i])) {
 		i++;
 		put_user (c, buffer++);
+	}
+	if (!IS_RDONLY(inode)) {
+		inode->i_atime = CURRENT_TIME;
+		inode->i_dirt = 1;
 	}
 	iput (inode);
 	if (bh)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this