Lines Matching refs:kdev
68 struct buffer_head *getblk(kdev_t kdev, blk64_t blocknr, int blocksize)
71 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize -
74 bh = e2fsck_allocate_memory(kdev->k_ctx, bufsize, "block buffer");
85 bh->b_ctx = kdev->k_ctx;
86 if (kdev->k_dev == K_DEV_FS)
87 bh->b_io = kdev->k_ctx->fs->io;
89 bh->b_io = kdev->k_ctx->journal_io;
96 void sync_blockdev(kdev_t kdev)
100 if (kdev->k_dev == K_DEV_FS)
101 io = kdev->k_ctx->fs->io;
103 io = kdev->k_ctx->journal_io;
251 dev_fs = e2fsck_allocate_memory(ctx, 2*sizeof(struct kdev_s), "kdev");