• Deepak R Varma's avatar
    gfs2: Replace deprecated kmap_atomic with kmap_local_page · 58721bd4
    Deepak R Varma authored
    
    
    kmap_atomic() is deprecated in favor of kmap_local_{folio,page}().
    
    Therefore, replace kmap_atomic() with kmap_local_page() in
    gfs2_internal_read() and stuffed_readpage().
    
    kmap_atomic() disables page-faults and preemption (the latter only for
    !PREEMPT_RT kernels), However, the code within the mapping/un-mapping in
    gfs2_internal_read() and stuffed_readpage() does not depend on the
    above-mentioned side effects.
    
    Therefore, a mere replacement of the old API with the new one is all that
    is required (i.e., there is no need to explicitly add any calls to
    pagefault_disable() and/or preempt_disable()).
    Signed-off-by: default avatarDeepak R Varma <drv@mailo.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    58721bd4
aops.c 19.5 KB