[Ocfs2-commits] zab commits r2635 -
branches/locking-changes/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Oct 4 17:49:13 CDT 2005
Author: zab
Date: 2005-10-04 17:49:12 -0500 (Tue, 04 Oct 2005)
New Revision: 2635
Modified:
branches/locking-changes/fs/ocfs2/aops.c
Log:
o zero our page if we're reading beyond i_size, not within it. dur.
Modified: branches/locking-changes/fs/ocfs2/aops.c
===================================================================
--- branches/locking-changes/fs/ocfs2/aops.c 2005-10-04 22:24:24 UTC (rev 2634)
+++ branches/locking-changes/fs/ocfs2/aops.c 2005-10-04 22:49:12 UTC (rev 2635)
@@ -216,7 +216,7 @@
*
* XXX sys_readahead() seems to get that wrong?
*/
- if (i_size_read(inode) >= start) {
+ if (start >= i_size_read(inode)) {
char *addr = kmap(page);
memset(addr, 0, PAGE_SIZE);
flush_dcache_page(page);
More information about the Ocfs2-commits
mailing list