patch-2.1.30 linux/mm/filemap.c
Next file: linux/mm/kmalloc.c
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Mar 20 17:27:37 1997
- Orig file:
v2.1.29/linux/mm/filemap.c
- Orig date:
Sun Jan 26 02:07:49 1997
diff -u --recursive --new-file v2.1.29/linux/mm/filemap.c linux/mm/filemap.c
@@ -753,7 +753,7 @@
filp->f_reada = 1;
if (page_cache)
free_page(page_cache);
- if (!IS_RDONLY(inode)) {
+ if (DO_UPDATE_ATIME(inode)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
@@ -1188,7 +1188,7 @@
return -EACCES;
if (!inode->i_op || !inode->i_op->readpage)
return -ENOEXEC;
- if (!IS_RDONLY(inode)) {
+ if (DO_UPDATE_ATIME(inode)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov