patch-2.1.45 linux/fs/ext2/symlink.c
Next file: linux/fs/ext2/truncate.c
Previous file: linux/fs/ext2/super.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Jul 8 16:10:44 1997
- Orig file:
v2.1.44/linux/fs/ext2/symlink.c
- Orig date:
Sun Jul 6 21:31:52 1997
diff -u --recursive --new-file v2.1.44/linux/fs/ext2/symlink.c linux/fs/ext2/symlink.c
@@ -65,10 +65,7 @@
}
link = bh->b_data;
}
- if (!IS_RDONLY(inode)) {
- inode->i_atime = CURRENT_TIME;
- inode->i_dirt = 1;
- }
+ UPDATE_ATIME(inode);
base = lookup_dentry(link, base, 1);
if (bh)
brelse(bh);
@@ -101,10 +98,7 @@
i++;
if (copy_to_user(buffer, link, i))
i = -EFAULT;
- if (DO_UPDATE_ATIME(inode)) {
- inode->i_atime = CURRENT_TIME;
- inode->i_dirt = 1;
- }
+ UPDATE_ATIME(inode);
if (bh)
brelse (bh);
return i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov