summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorBrian Foster2018-03-24 01:54:32 +0100
committerDarrick J. Wong2018-03-26 17:54:15 +0200
commit72c44e35f02a1cb4032e476c398a7234badcf49f (patch)
treedd99c46c9bbafdd6f381d8b72a8e9abfa9b63a52 /fs/xfs/xfs_log_recover.c
parentxfs: remove dead inode version setting code (diff)
downloadkernel-qcow2-linux-72c44e35f02a1cb4032e476c398a7234badcf49f.tar.gz
kernel-qcow2-linux-72c44e35f02a1cb4032e476c398a7234badcf49f.tar.xz
kernel-qcow2-linux-72c44e35f02a1cb4032e476c398a7234badcf49f.zip
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 'fs/xfs/xfs_log_recover.c')
0 files changed, 0 insertions, 0 deletions