mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
gfs2: Use b_folio in gfs2_check_magic()
We are preparing to remove bh->b_page. Use kmap_local_folio() instead of kmap_local_page(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
072d732c05
commit
e6ff5f2089
|
|
@ -615,15 +615,13 @@ static struct page *gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type,
|
|||
|
||||
static void gfs2_check_magic(struct buffer_head *bh)
|
||||
{
|
||||
void *kaddr;
|
||||
__be32 *ptr;
|
||||
|
||||
clear_buffer_escaped(bh);
|
||||
kaddr = kmap_local_page(bh->b_page);
|
||||
ptr = kaddr + bh_offset(bh);
|
||||
ptr = kmap_local_folio(bh->b_folio, bh_offset(bh));
|
||||
if (*ptr == cpu_to_be32(GFS2_MAGIC))
|
||||
set_buffer_escaped(bh);
|
||||
kunmap_local(kaddr);
|
||||
kunmap_local(ptr);
|
||||
}
|
||||
|
||||
static int blocknr_cmp(void *priv, const struct list_head *a,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user