aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2011-10-31 09:07:42 +0000
committerSteven Rostedt <[email protected]>2011-12-05 18:28:44 +0000
commitcb59974742aea24adf6637eb0c4b8e7b48bca6fb (patch)
tree1f891849b3fa24d69c3517c3c3739964ecfb0ac9 /fs/btrfs/async-thread.c
parentMerge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-cb59974742aea24adf6637eb0c4b8e7b48bca6fb.tar.gz
kernel-cb59974742aea24adf6637eb0c4b8e7b48bca6fb.zip
tracing: fix event_subsystem ref counting
Fix a bug introduced by e9dbfae5, which prevents event_subsystem from ever being released. Ref_count was added to keep track of subsystem users, not for counting events. Subsystem is created with ref_count = 1, so there is no need to increment it for every event, we have nr_events for that. Fix this by touching ref_count only when we actually have a new user - subsystem_open(). Cc: [email protected] Signed-off-by: Ilya Dryomov <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions