Lines Matching refs:kdev
119 struct buffer_head *getblk(kdev_t kdev, blk64_t blocknr, int blocksize) in getblk() argument
122 int bufsize = sizeof(*bh) + kdev->k_ctx->fs->blocksize - in getblk()
125 bh = e2fsck_allocate_memory(kdev->k_ctx, bufsize, "block buffer"); in getblk()
136 bh->b_ctx = kdev->k_ctx; in getblk()
137 if (kdev->k_dev == K_DEV_FS) in getblk()
138 bh->b_io = kdev->k_ctx->fs->io; in getblk()
140 bh->b_io = kdev->k_ctx->journal_io; in getblk()
147 int sync_blockdev(kdev_t kdev) in sync_blockdev() argument
151 if (kdev->k_dev == K_DEV_FS) in sync_blockdev()
152 io = kdev->k_ctx->fs->io; in sync_blockdev()
154 io = kdev->k_ctx->journal_io; in sync_blockdev()