double increment of current->maj_flt

From: V Ganesh (ganesh@veritas.com)
Date: Fri Apr 28 2000 - 01:20:33 EST


in the case of mmaped accesses, the number of major faults is twice
that the real amount. ++current->maj_flt is done once by do_no_page() and
once by inode->readpage().
in case of access by read(), the number reported is correct, since only
inode->readpage() increments the count.
is this a bug or is it by design ?

ganesh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:14 EST