patch-2.1.9 linux/mm/filemap.c
Next file: linux/net/Config.in
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Tue Nov 12 14:22:09 1996
- Orig file:
v2.1.8/linux/mm/filemap.c
- Orig date:
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.8/linux/mm/filemap.c linux/mm/filemap.c
@@ -751,12 +751,12 @@
filp->f_reada = 1;
if (page_cache)
free_page(page_cache);
- if (!read)
- return error;
if (!IS_RDONLY(inode)) {
inode->i_atime = CURRENT_TIME;
inode->i_dirt = 1;
}
+ if (!read)
+ read = error;
return read;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov