Lines Matching refs:buffer_head
46 struct buffer_head;
48 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate);
59 struct buffer_head { struct
61 struct buffer_head *b_this_page;/* circular list of page's buffers */ argument
90 static __always_inline void set_buffer_##name(struct buffer_head *bh) \ argument
95 static __always_inline void clear_buffer_##name(struct buffer_head *bh) \
99 static __always_inline int buffer_##name(const struct buffer_head *bh) \
108 static __always_inline int test_set_buffer_##name(struct buffer_head *bh) \
112 static __always_inline int test_clear_buffer_##name(struct buffer_head *bh) \
139 static __always_inline void set_buffer_uptodate(struct buffer_head *bh) in BUFFER_FNS()
160 static __always_inline void clear_buffer_uptodate(struct buffer_head *bh) in clear_buffer_uptodate()
165 static __always_inline int buffer_uptodate(const struct buffer_head *bh) in buffer_uptodate()
174 static inline unsigned long bh_offset(const struct buffer_head *bh) in bh_offset()
183 ((struct buffer_head *)page_private(page)); \
195 void mark_buffer_dirty(struct buffer_head *bh);
196 void mark_buffer_write_io_error(struct buffer_head *bh);
197 void touch_buffer(struct buffer_head *bh);
198 void folio_set_bh(struct buffer_head *bh, struct folio *folio,
200 struct buffer_head *folio_alloc_buffers(struct folio *folio, unsigned long size,
202 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size);
203 struct buffer_head *create_empty_buffers(struct folio *folio,
205 void end_buffer_read_sync(struct buffer_head *bh, int uptodate);
206 void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
209 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode);
216 static inline void clean_bdev_bh_alias(struct buffer_head *bh) in clean_bdev_bh_alias()
221 void mark_buffer_async_write(struct buffer_head *bh);
222 void __wait_on_buffer(struct buffer_head *);
223 wait_queue_head_t *bh_waitq_head(struct buffer_head *bh);
224 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
226 struct buffer_head *__find_get_block_nonatomic(struct block_device *bdev,
228 struct buffer_head *bdev_getblk(struct block_device *bdev, sector_t block,
230 void __brelse(struct buffer_head *);
231 void __bforget(struct buffer_head *);
233 struct buffer_head *__bread_gfp(struct block_device *,
235 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags);
236 void free_buffer_head(struct buffer_head * bh);
237 void unlock_buffer(struct buffer_head *bh);
238 void __lock_buffer(struct buffer_head *bh);
239 int sync_dirty_buffer(struct buffer_head *bh);
240 int __sync_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags);
241 void write_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags);
242 void submit_bh(blk_opf_t, struct buffer_head *);
245 int bh_uptodate_or_lock(struct buffer_head *bh);
246 int __bh_read(struct buffer_head *bh, blk_opf_t op_flags, bool wait);
247 void __bh_read_batch(int nr, struct buffer_head *bhs[],
296 static inline void get_bh(struct buffer_head *bh) in get_bh()
301 static inline void put_bh(struct buffer_head *bh) in put_bh()
323 static inline void brelse(struct buffer_head *bh) in brelse()
339 static inline void bforget(struct buffer_head *bh) in bforget()
345 static inline struct buffer_head *
351 static inline struct buffer_head *
363 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
374 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
385 static inline struct buffer_head *sb_getblk(struct super_block *sb, in sb_getblk()
391 static inline struct buffer_head *sb_getblk_gfp(struct super_block *sb, in sb_getblk_gfp()
397 static inline struct buffer_head *
403 static inline struct buffer_head *
410 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) in map_bh()
418 static inline void wait_on_buffer(struct buffer_head *bh) in wait_on_buffer()
425 static inline int trylock_buffer(struct buffer_head *bh) in trylock_buffer()
430 static inline void lock_buffer(struct buffer_head *bh) in lock_buffer()
437 static inline void bh_readahead(struct buffer_head *bh, blk_opf_t op_flags) in bh_readahead()
447 static inline void bh_read_nowait(struct buffer_head *bh, blk_opf_t op_flags) in bh_read_nowait()
454 static inline int bh_read(struct buffer_head *bh, blk_opf_t op_flags) in bh_read()
461 static inline void bh_read_batch(int nr, struct buffer_head *bhs[]) in bh_read_batch()
466 static inline void bh_readahead_batch(int nr, struct buffer_head *bhs[], in bh_readahead_batch()
486 static inline struct buffer_head *__bread(struct block_device *bdev, in __bread()
506 struct buffer_head *get_nth_bh(struct buffer_head *bh, unsigned int count) in get_nth_bh()