Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 5.16 compat - fpu/xcr.h header and folio_wait_bit() changes #12800

Closed
wants to merge 2 commits into from

Commits on Nov 26, 2021

  1. Linux 5.16: wait_on_page_bit() no longer available to modules

    Instead, linux/pagemap.h offers a number of folio-specific functions to
    be called instead. In this case, module/os/linux/zfs/zfs_vnops_os.c
    wants to call wait_on_page_bit(pp, PG_writeback). This gets replaced
    with folio_wait_bit(folio_page(pp), PG_writeback). This change modifies
    the code to conditionally compile that if configure identifies th
    presence of the folio_wait_bit() function.
    
    Signed-off-by: Coleman Kane <ckane@colemankane.org>
    ckane committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    660ccd7 View commit details
    Browse the repository at this point in the history
  2. Linux 5.16 compat: asm/fpu/xcr.h is new location for xgetbv/xsetbv

    Linux 5.16 moved these functions into this new header in commit
    1b4fb8545f2b00f2844c4b7619d64d98440a477c. This change adds code to look
    for the presence of this header, and include it so that the code using
    xgetbv & xsetbv will compile again.
    
    Signed-off-by: Coleman Kane <ckane@colemankane.org>
    ckane committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    30b6973 View commit details
    Browse the repository at this point in the history