aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorWang Sheng-Hui <[email protected]>2011-07-22 08:50:13 -0500
committerJan Kara <[email protected]>2011-07-22 19:41:16 +0200
commit03b5bb342978f99f75fb36d69cd29bab32109fd4 (patch)
tree495099b74e217de7c322a1bf4737901a1efb8a3a /tools/perf/util/scripting-engines/trace-event-python.c
parentc878c73f8dda48f64bcec24f78e80e154cbc5cf8 (diff)
ext2: check xattr name_len before acquiring xattr_sem in ext2_xattr_get
In ext2_xattr_get(), the code will acquire xattr_sem first, later checks the length of xattr name_len > 255. It's unnecessarily time consuming and also ext2_xattr_set() checks the length before other checks. So move the check before acquiring xattr_sem to make these two functions consistent. Signed-off-by: Wang Sheng-Hui <[email protected]> Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions