The patch titled add missing accounting calls to compat_sys_{readv,writev} has been added to the -mm tree. Its filename is add-missing-accounting-calls-to-compat_sys_readvwritev.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: add missing accounting calls to compat_sys_{readv,writev} From: Gerd Hoffmann <kraxel@xxxxxxxxxx> Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxxxxx> Cc: Jay Lan <jlan@xxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/compat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -puN fs/compat.c~add-missing-accounting-calls-to-compat_sys_readvwritev fs/compat.c --- a/fs/compat.c~add-missing-accounting-calls-to-compat_sys_readvwritev +++ a/fs/compat.c @@ -1187,6 +1187,9 @@ compat_sys_readv(unsigned long fd, const ret = compat_do_readv_writev(READ, file, vec, vlen, &file->f_pos); out: + if (ret > 0) + add_rchar(current, ret); + inc_syscr(current); fput(file); return ret; } @@ -1210,6 +1213,9 @@ compat_sys_writev(unsigned long fd, cons ret = compat_do_readv_writev(WRITE, file, vec, vlen, &file->f_pos); out: + if (ret > 0) + add_wchar(current, ret); + inc_syscw(current); fput(file); return ret; } _ Patches currently in -mm which might be from kraxel@xxxxxxxxxx are linux-next.patch add-missing-accounting-calls-to-compat_sys_readvwritev.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html