Lines Matching refs:block_device
432 struct block_device { struct
445 struct block_device * bd_contains; argument
669 struct block_device *i_bdev;
849 extern struct block_device *I_BDEV(struct inode *inode);
1387 struct block_device *s_bdev;
2482 extern struct block_device *bdget(dev_t);
2483 extern struct block_device *bdgrab(struct block_device *bdev);
2484 extern void bd_set_size(struct block_device *, loff_t size);
2486 extern void bdput(struct block_device *);
2487 extern void invalidate_bdev(struct block_device *);
2488 extern void iterate_bdevs(void (*)(struct block_device *, void *), void *);
2489 extern int sync_blockdev(struct block_device *bdev);
2490 extern void kill_bdev(struct block_device *);
2491 extern struct super_block *freeze_bdev(struct block_device *);
2494 extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
2495 extern int fsync_bdev(struct block_device *);
2505 static inline int sync_blockdev(struct block_device *bdev) { return 0; } in sync_blockdev()
2506 static inline void kill_bdev(struct block_device *bdev) {} in kill_bdev()
2507 static inline void invalidate_bdev(struct block_device *bdev) {} in invalidate_bdev()
2509 static inline struct super_block *freeze_bdev(struct block_device *sb) in freeze_bdev()
2514 static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb) in thaw_bdev()
2524 static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) in iterate_bdevs() argument
2537 extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long);
2538 extern int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long);
2540 extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder);
2541 extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
2543 extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
2545 extern void blkdev_put(struct block_device *bdev, fmode_t mode);
2546 extern int __blkdev_reread_part(struct block_device *bdev);
2547 extern int blkdev_reread_part(struct block_device *bdev);
2550 extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
2551 extern void bd_unlink_disk_holder(struct block_device *bdev,
2554 static inline int bd_link_disk_holder(struct block_device *bdev, in bd_link_disk_holder()
2559 static inline void bd_unlink_disk_holder(struct block_device *bdev, in bd_unlink_disk_holder()
2602 extern const char *bdevname(struct block_device *bdev, char *buffer);
2603 extern struct block_device *lookup_bdev(const char *);
2618 struct block_device *bdev, bool verbose);
2620 extern int check_disk_change(struct block_device *);
2621 extern int __invalidate_device(struct block_device *, bool);
2961 extern int bdev_read_only(struct block_device *);
2963 extern int set_blocksize(struct block_device *, int);
3030 struct block_device *bdev, struct iov_iter *iter,
3147 extern struct super_block *get_super(struct block_device *);
3148 extern struct super_block *get_super_thawed(struct block_device *);
3149 extern struct super_block *get_super_exclusive_thawed(struct block_device *bdev);
3150 extern struct super_block *get_active_super(struct block_device *bdev);