btrfs: plumb fs_info into btrfs_work
authorJeff Mahoney <jeffm@suse.com>
Thu, 9 Jun 2016 20:22:11 +0000 (16:22 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:53:15 +0000 (13:53 +0200)
commitcb001095ca705dcd95f57fe98867e38a4889916d
tree14a4d7643bf5b4a436f085615fbafd2575a09108
parent9f8d49095b86d3494ee184f6ede4a5b179d5dc5c
btrfs: plumb fs_info into btrfs_work

In order to provide an fsid for trace events, we'll need a btrfs_fs_info
pointer.  The most lightweight way to do that for btrfs_work structures
is to associate it with the __btrfs_workqueue structure.  Each queued
btrfs_work structure has a workqueue associated with it, so that's
a natural fit.  It's a privately defined structures, so we add accessors
to retrieve the fs_info pointer.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/async-thread.c
fs/btrfs/async-thread.h
fs/btrfs/disk-io.c
fs/btrfs/scrub.c