summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2018-03-24 03:54:32 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2018-03-26 18:54:15 +0300
commit72c44e35f02a1cb4032e476c398a7234badcf49f (patch)
treedd99c46c9bbafdd6f381d8b72a8e9abfa9b63a52 /tools/perf/util/scripting-engines/trace-event-python.c
parentfa4493f0d9b3ac8f36743f1a26e2318b449ee4c8 (diff)
downloadlinux-72c44e35f02a1cb4032e476c398a7234badcf49f.tar.xz
xfs: clean up xfs_mount allocation and dynamic initializers
Most of the generic data structures embedded in xfs_mount are dynamically initialized immediately after mp is allocated. A few fields are left out and initialized during the xfs_mountfs() sequence, after mp has been attached to the superblock. To clean this up and help prevent premature access of associated fields, refactor xfs_mount allocation and all dependent init calls into a new helper. This self-documents that all low level data structures (i.e., locks, trees, etc.) should be initialized before xfs_mount is attached to the superblock. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions