• Christoph Hellwig's avatar
    [XFS] sort out opening and closing of the block devices · 19f354d4
    Christoph Hellwig authored
    Currently closing the rt/log block device is done in the wrong spot, and
    far too early. So revampt it:
    
    - xfs_blkdev_put moved out of xfs_free_buftarg into the caller so that
    
    it is done after tearing down the buftarg completely.
    
    - call to xfs_unmountfs_close moved from xfs_mountfs into caller so
    
    that it's done after tearing down the filesystem completely.
    
    - xfs_unmountfs_close is renamed to xfs_close_devices and made static
    
    in xfs_super.c
    
    - opening of the block devices is split into a helper xfs_open_devices
    
    that is symetric in use to xfs_close_devices
    
    - xfs_unmountfs can now lose struct cred
    
    - error handling around device opening sanitized in xfs_fs_fill_super
    
    SGI-PV: 981951
    SGI-Modid: xfs-linux-melb:xfs-kern:31193a
    Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
    Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
    Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
    19f354d4
xfs_buf.h 15.2 KB