double increment of current->maj_flt

V Ganesh (ganesh@veritas.com)
Fri, 28 Apr 2000 11:50:33 +0530 (IST)


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/