aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2011-11-01 07:06:17 -0700
committerLinus Torvalds <[email protected]>2011-11-01 09:16:14 -0700
commitf6d90b4f9ce018bff429d6e01ee672de712b8641 (patch)
tree3fe57c005cece1d734ebb2b5dd23876fa3eb644e /tools/perf/util/scripting-engines/trace-event-python.c
parentc87d5d594736dd8b56df67e31846c7d7b8c41a8f (diff)
sysfs: Make sysfs_rename safe with sysfs_dirents in rbtrees.
In sysfs_rename we need to remove the optimization of not calling sysfs_unlink_sibling and sysfs_link_sibling if the renamed parent directory is not changing. This optimization is no longer valid now that sysfs dirents are stored in an rbtree sorted by name. Move the assignment of s_ns before the call of sysfs_link_sibling. With no sysfs_dirent fields changing after the call of sysfs_link_sibling this allows sysfs_link_sibling to take any of the directory entries into account when it builds the rbtrees, and s_ns looks like a prime canidate to be used in the rbtree in the future. Signed-off-by: Eric W. Biederman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Greg KH <[email protected]> Cc: David Miller <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions