Lines Matching refs:sb_page
489 if (!bitmap->sb_page) { /* no superblock */ in bitmap_update_sb()
494 sb = kmap_atomic(bitmap->sb_page, KM_USER0); in bitmap_update_sb()
505 write_page(bitmap, bitmap->sb_page, 1); in bitmap_update_sb()
513 if (!bitmap || !bitmap->sb_page) in bitmap_print_sb()
515 sb = kmap_atomic(bitmap->sb_page, KM_USER0); in bitmap_print_sb()
551 bitmap->sb_page = read_page(bitmap->file, 0, bitmap, bytes); in bitmap_read_sb()
553 bitmap->sb_page = read_sb_page(bitmap->mddev, in bitmap_read_sb()
558 if (IS_ERR(bitmap->sb_page)) { in bitmap_read_sb()
559 err = PTR_ERR(bitmap->sb_page); in bitmap_read_sb()
560 bitmap->sb_page = NULL; in bitmap_read_sb()
564 sb = kmap_atomic(bitmap->sb_page, KM_USER0); in bitmap_read_sb()
645 if (!bitmap->sb_page) { /* can't set the state */ in bitmap_mask_state()
650 sb = kmap_atomic(bitmap->sb_page, KM_USER0); in bitmap_mask_state()
712 struct page **map, *sb_page; in bitmap_file_unmap() local
724 sb_page = bitmap->sb_page; in bitmap_file_unmap()
725 bitmap->sb_page = NULL; in bitmap_file_unmap()
729 if (map[pages] != sb_page) /* 0 is sb_page, release it below */ in bitmap_file_unmap()
734 if (sb_page) in bitmap_file_unmap()
735 free_buffers(sb_page); in bitmap_file_unmap()
998 if (index == 0 && bitmap->sb_page) { in bitmap_init_from_disk()
1004 page = bitmap->sb_page; in bitmap_init_from_disk()
1195 sb = kmap_atomic(bitmap->sb_page, KM_USER0); in bitmap_daemon_work()
1199 write_page(bitmap, bitmap->sb_page, 1); in bitmap_daemon_work()