• Brian Foster's avatar
    xfs: relocate sparse inode mount warning · 1b867d3a
    Brian Foster authored
    The sparse inodes feature is currently considered experimental. We warn
    at mount time from xfs_mount_validate_sb(). This function is part of the
    superblock verifier codepath, however, which means it could be invoked
    repeatedly on superblock reads or writes. This is currently only
    noticeable from userspace, where mkfs produces multiple warnings at
    format time.
    
    As mkfs warnings were not the intent of this change, relocate the mount
    time warning to xfs_fs_fill_super(), which is only invoked once and only
    in kernel space.
    Signed-off-by: default avatarBrian Foster <bfoster@redhat.com>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    1b867d3a
xfs_super.c 49.8 KB