Home | History | Annotate | Download | only in linux

Lines Matching refs:block_device

647 	struct inode		*host;		/* owner: inode, block_device */
671 struct block_device {
685 struct block_device * bd_contains;
695 * Private data. You must have bd_claim'ed the block_device
835 struct block_device *i_bdev;
940 extern struct block_device *I_BDEV(struct inode *inode);
1459 struct block_device *s_bdev;
2051 extern struct block_device *bdget(dev_t);
2052 extern struct block_device *bdgrab(struct block_device *bdev);
2053 extern void bd_set_size(struct block_device *, loff_t size);
2054 extern sector_t blkdev_max_block(struct block_device *bdev);
2056 extern void bdput(struct block_device *);
2057 extern void invalidate_bdev(struct block_device *);
2058 extern int sync_blockdev(struct block_device *bdev);
2059 extern void kill_bdev(struct block_device *);
2060 extern struct super_block *freeze_bdev(struct block_device *);
2062 extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
2063 extern int fsync_bdev(struct block_device *);
2066 static inline int sync_blockdev(struct block_device *bdev) { return 0; }
2067 static inline void kill_bdev(struct block_device *bdev) {}
2068 static inline void invalidate_bdev(struct block_device *bdev) {}
2070 static inline struct super_block *freeze_bdev(struct block_device *sb)
2075 static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb)
2086 extern int ioctl_by_bdev(struct block_device *, unsigned, unsigned long);
2087 extern int blkdev_ioctl(struct block_device *, fmode_t, unsigned, unsigned long);
2089 extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder);
2090 extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode,
2092 extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
2094 extern int blkdev_put(struct block_device *bdev, fmode_t mode);
2096 extern int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
2097 extern void bd_unlink_disk_holder(struct block_device *bdev,
2100 static inline int bd_link_disk_holder(struct block_device *bdev,
2105 static inline void bd_unlink_disk_holder(struct block_device *bdev,
2142 extern const char *bdevname(struct block_device *bdev, char *buffer);
2143 extern struct block_device *lookup_bdev(const char *);
2172 struct block_device *bdev);
2174 extern int check_disk_change(struct block_device *);
2175 extern int __invalidate_device(struct block_device *, bool);
2357 extern int bdev_read_only(struct block_device *);
2359 extern int set_blocksize(struct block_device *, int);
2440 struct block_device *bdev, const struct iovec *iov, loff_t offset,
2500 extern struct super_block *get_super(struct block_device *);
2501 extern struct super_block *get_super_thawed(struct block_device *);
2502 extern struct super_block *get_active_super(struct block_device *bdev);