• Dave Chinner's avatar
    xfs: set superblock buffer type correctly · 66c4da65
    Dave Chinner authored
    commit 3443a3bca54588f43286b725d8648d33a38c86f1 upstream.
    
    When the superblock is modified in a transaction, the commonly
    modified fields are not actually copied to the superblock buffer to
    avoid the buffer lock becoming a serialisation point. However, there
    are some other operations that modify the superblock fields within
    the transaction that don't directly log to the superblock but rely
    on the changes to be applied during the transaction commit (to
    minimise the buffer lock hold time).
    
    When we do this, we fail to mark the buffer log item as being a
    superblock buffer and that can lead to the buffer not being marked
    with the corect type in the log and hence causing recovery issues.
    Fix it by setting the type correctly, similar to xfs_mod_sb()...
    Tested-by: 's avatarJan Kara <jack@suse.cz>
    Signed-off-by: 's avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: 's avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: 's avatarDave Chinner <david@fromorbit.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    66c4da65
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
kmem.c Loading commit data...
kmem.h Loading commit data...
mrlock.h Loading commit data...
time.h Loading commit data...
uuid.c Loading commit data...
uuid.h Loading commit data...
xfs.h Loading commit data...
xfs_acl.c Loading commit data...
xfs_acl.h Loading commit data...
xfs_ag.h Loading commit data...
xfs_alloc.c Loading commit data...
xfs_alloc.h Loading commit data...
xfs_alloc_btree.c Loading commit data...
xfs_alloc_btree.h Loading commit data...
xfs_aops.c Loading commit data...
xfs_aops.h Loading commit data...
xfs_attr.c Loading commit data...
xfs_attr.h Loading commit data...
xfs_attr_leaf.c Loading commit data...
xfs_attr_leaf.h Loading commit data...
xfs_attr_remote.c Loading commit data...
xfs_attr_remote.h Loading commit data...
xfs_attr_sf.h Loading commit data...
xfs_bit.c Loading commit data...
xfs_bit.h Loading commit data...
xfs_bmap.c Loading commit data...
xfs_bmap.h Loading commit data...
xfs_bmap_btree.c Loading commit data...
xfs_bmap_btree.h Loading commit data...
xfs_btree.c Loading commit data...
xfs_btree.h Loading commit data...
xfs_buf.c Loading commit data...
xfs_buf.h Loading commit data...
xfs_buf_item.c Loading commit data...
xfs_buf_item.h Loading commit data...
xfs_cksum.h Loading commit data...
xfs_da_btree.c Loading commit data...
xfs_da_btree.h Loading commit data...
xfs_dfrag.c Loading commit data...
xfs_dfrag.h Loading commit data...
xfs_dinode.h Loading commit data...
xfs_dir2.c Loading commit data...
xfs_dir2.h Loading commit data...
xfs_dir2_block.c Loading commit data...
xfs_dir2_data.c Loading commit data...
xfs_dir2_format.h Loading commit data...
xfs_dir2_leaf.c Loading commit data...
xfs_dir2_node.c Loading commit data...
xfs_dir2_priv.h Loading commit data...
xfs_dir2_sf.c Loading commit data...
xfs_discard.c Loading commit data...
xfs_discard.h Loading commit data...
xfs_dquot.c Loading commit data...
xfs_dquot.h Loading commit data...
xfs_dquot_item.c Loading commit data...
xfs_dquot_item.h Loading commit data...
xfs_error.c Loading commit data...
xfs_error.h Loading commit data...
xfs_export.c Loading commit data...
xfs_export.h Loading commit data...
xfs_extent_busy.c Loading commit data...
xfs_extent_busy.h Loading commit data...
xfs_extfree_item.c Loading commit data...
xfs_extfree_item.h Loading commit data...
xfs_file.c Loading commit data...
xfs_filestream.c Loading commit data...
xfs_filestream.h Loading commit data...
xfs_fs.h Loading commit data...
xfs_fsops.c Loading commit data...
xfs_fsops.h Loading commit data...
xfs_globals.c Loading commit data...
xfs_ialloc.c Loading commit data...
xfs_ialloc.h Loading commit data...
xfs_ialloc_btree.c Loading commit data...
xfs_ialloc_btree.h Loading commit data...
xfs_icache.c Loading commit data...
xfs_icache.h Loading commit data...
xfs_inode.c Loading commit data...
xfs_inode.h Loading commit data...
xfs_inode_item.c Loading commit data...
xfs_inode_item.h Loading commit data...
xfs_inum.h Loading commit data...
xfs_ioctl.c Loading commit data...
xfs_ioctl.h Loading commit data...
xfs_ioctl32.c Loading commit data...
xfs_ioctl32.h Loading commit data...
xfs_iomap.c Loading commit data...
xfs_iomap.h Loading commit data...
xfs_iops.c Loading commit data...
xfs_iops.h Loading commit data...
xfs_itable.c Loading commit data...
xfs_itable.h Loading commit data...
xfs_linux.h Loading commit data...
xfs_log.c Loading commit data...
xfs_log.h Loading commit data...
xfs_log_cil.c Loading commit data...
xfs_log_priv.h Loading commit data...
xfs_log_recover.c Loading commit data...
xfs_log_recover.h Loading commit data...
xfs_message.c Loading commit data...
xfs_message.h Loading commit data...
xfs_mount.c Loading commit data...
xfs_mount.h Loading commit data...
xfs_mru_cache.c Loading commit data...
xfs_mru_cache.h Loading commit data...
xfs_qm.c Loading commit data...
xfs_qm.h Loading commit data...
xfs_qm_bhv.c Loading commit data...
xfs_qm_syscalls.c Loading commit data...
xfs_quota.h Loading commit data...
xfs_quota_priv.h Loading commit data...
xfs_quotaops.c Loading commit data...
xfs_rename.c Loading commit data...
xfs_rtalloc.c Loading commit data...
xfs_rtalloc.h Loading commit data...
xfs_sb.h Loading commit data...
xfs_stats.c Loading commit data...
xfs_stats.h Loading commit data...
xfs_super.c Loading commit data...
xfs_super.h Loading commit data...
xfs_symlink.c Loading commit data...
xfs_symlink.h Loading commit data...
xfs_sysctl.c Loading commit data...
xfs_sysctl.h Loading commit data...
xfs_trace.c Loading commit data...
xfs_trace.h Loading commit data...
xfs_trans.c Loading commit data...
xfs_trans.h Loading commit data...
xfs_trans_ail.c Loading commit data...
xfs_trans_buf.c Loading commit data...
xfs_trans_dquot.c Loading commit data...
xfs_trans_extfree.c Loading commit data...
xfs_trans_inode.c Loading commit data...
xfs_trans_priv.h Loading commit data...
xfs_trans_space.h Loading commit data...
xfs_types.h Loading commit data...
xfs_utils.c Loading commit data...
xfs_utils.h Loading commit data...
xfs_vnode.h Loading commit data...
xfs_vnodeops.c Loading commit data...
xfs_vnodeops.h Loading commit data...
xfs_xattr.c Loading commit data...