diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-12-15 22:06:10 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-12-16 21:46:07 +0100 |
commit | a50bd43935586420fb75f4558369eb08566fac5e (patch) | |
tree | 63ad335cf267ffb4a9a4500498de4f1eb050e3b4 /net/caif/caif_dev.c | |
parent | scripts: recordmcount: break hardlinks (diff) | |
download | linux-a50bd43935586420fb75f4558369eb08566fac5e.tar.xz linux-a50bd43935586420fb75f4558369eb08566fac5e.zip |
ftrace/scripts: Have recordmcount copy the object file
Russell King found that he had weird side effects when compiling the kernel
with hard linked ccache. The reason was that recordmcount modified the
kernel in place via mmap, and when a file gets modified twice by
recordmcount, it will complain about it. To fix this issue, Russell wrote a
patch that checked if the file was hard linked more than once and would
unlink it if it was.
Linus Torvalds was not happy with the fact that recordmcount does this in
place modification. Instead of doing the unlink only if the file has two or
more hard links, it does the unlink all the time. In otherwords, it always
does a copy if it changed something. That is, it does the write out if a
change was made.
Cc: stable@vger.kernel.org # 2.6.37+
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'net/caif/caif_dev.c')
0 files changed, 0 insertions, 0 deletions