• Darrick J. Wong's avatar
    xfs: set buffer ops when repair probes for btree type · add46b3b
    Darrick J. Wong authored
    In xrep_findroot_block, we work out the btree type and correctness of a
    given block by calling different btree verifiers on root block
    candidates.  However, we leave the NULL b_ops while ->verify_read
    validates the block, which means that if the verifier calls
    xfs_buf_verifier_error it'll crash on the null b_ops.  Fix it to set
    b_ops before calling the verifier and unsetting it if the verifier
    fails.
    
    Furthermore, improve the documentation around xfs_buf_ensure_ops, which
    is the function that is responsible for cleaning up the b_ops state of
    buffers that go through xrep_findroot_block but don't match anything.
    Signed-off-by: 's avatarDarrick J. Wong <darrick.wong@oracle.com>
    Reviewed-by: 's avatarBrian Foster <bfoster@redhat.com>
    add46b3b
Name
Last commit
Last update
..
libxfs Loading commit data...
scrub Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
kmem.c Loading commit data...
kmem.h Loading commit data...
mrlock.h Loading commit data...
xfs.h Loading commit data...
xfs_acl.c Loading commit data...
xfs_acl.h Loading commit data...
xfs_aops.c Loading commit data...
xfs_aops.h Loading commit data...
xfs_attr_inactive.c Loading commit data...
xfs_attr_list.c Loading commit data...
xfs_bmap_item.c Loading commit data...
xfs_bmap_item.h Loading commit data...
xfs_bmap_util.c Loading commit data...
xfs_bmap_util.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_dir2_readdir.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_fsmap.c Loading commit data...
xfs_fsmap.h Loading commit data...
xfs_fsops.c Loading commit data...
xfs_fsops.h Loading commit data...
xfs_globals.c Loading commit data...
xfs_icache.c Loading commit data...
xfs_icache.h Loading commit data...
xfs_icreate_item.c Loading commit data...
xfs_icreate_item.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_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_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_ondisk.h Loading commit data...
xfs_pnfs.c Loading commit data...
xfs_pnfs.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_quotaops.c Loading commit data...
xfs_refcount_item.c Loading commit data...
xfs_refcount_item.h Loading commit data...
xfs_reflink.c Loading commit data...
xfs_reflink.h Loading commit data...
xfs_rmap_item.c Loading commit data...
xfs_rmap_item.h Loading commit data...
xfs_rtalloc.c Loading commit data...
xfs_rtalloc.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_sysfs.c Loading commit data...
xfs_sysfs.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_bmap.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_refcount.c Loading commit data...
xfs_trans_rmap.c Loading commit data...
xfs_xattr.c Loading commit data...