patch-1.3.27 linux/fs/buffer.c

Next file: linux/fs/isofs/inode.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.26/linux/fs/buffer.c linux/fs/buffer.c
@@ -1042,7 +1042,7 @@
 	while (nrbuf-- > 0)
 		brelse(bh[nrbuf]);
 	free_page(address);
-	++current->mm->min_flt;
+	++current->min_flt;
 	return page;
 no_go:
 	while (nrbuf-- > 0)
@@ -1100,7 +1100,7 @@
 	read_buffers(arr,block);
 	while (block-- > 0)
 		brelse(arr[block]);
-	++current->mm->maj_flt;
+	++current->maj_flt;
 	return address;
 not_aligned:
 	while ((tmp = bh) != NULL) {
@@ -1154,7 +1154,7 @@
 		if (where)
 			return where;
 	}
-	++current->mm->maj_flt;
+	++current->maj_flt;
  	for (i=0, j=0; j<PAGE_SIZE ; i++, j+= size) {
 		bh[i] = NULL;
 		if (b[i])

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this