• Christoph Hellwig's avatar
    nfs: simplify nfs_folio_find_and_lock_request · 9eb7c484
    Christoph Hellwig authored
    nfs_folio_find_and_lock_request and the nfs_page_group_lock_head helper
    called by it spend quite some effort to deal with head vs subrequests.
    But given that only the head request can be stashed in the folio private
    data, non of that is required.
    
    Fold the locking logic from nfs_page_group_lock_head into
    nfs_folio_find_and_lock_request and simplify the result based on the
    invariant that we always find the head request in the folio private data.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    9eb7c484
pagelist.c 40.2 KB