patch-2.1.92 linux/fs/ext2/file.c
Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/exec.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Fri Mar 27 10:11:38 1998
- Orig file:
v2.1.91/linux/fs/ext2/file.c
- Orig date:
Fri Jan 30 15:50:57 1998
diff -u --recursive --new-file v2.1.91/linux/fs/ext2/file.c linux/fs/ext2/file.c
@@ -219,6 +219,11 @@
count -= c;
mark_buffer_uptodate(bh, 1);
mark_buffer_dirty(bh, 0);
+
+ /* Mark the buffer untouched if we'll move on to the next one.. */
+ if (!(pos & (sb->s_blocksize-1)))
+ clear_bit(BH_Touched, &bh->b_state);
+
if (filp->f_flags & O_SYNC)
bufferlist[buffercount++] = bh;
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov