@@ -207,28 +207,10 @@ void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
207207
208208/* Things to do with metadata buffers list */
209209void mmb_mark_buffer_dirty (struct buffer_head * bh , struct mapping_metadata_bhs * mmb );
210- static inline void mark_buffer_dirty_inode (struct buffer_head * bh ,
211- struct inode * inode )
212- {
213- mmb_mark_buffer_dirty (bh , & inode -> i_data .i_metadata_bhs );
214- }
215210int mmb_fsync_noflush (struct file * file , struct mapping_metadata_bhs * mmb ,
216211 loff_t start , loff_t end , bool datasync );
217- static inline int generic_buffers_fsync_noflush (struct file * file ,
218- loff_t start , loff_t end ,
219- bool datasync )
220- {
221- return mmb_fsync_noflush (file , & file -> f_mapping -> i_metadata_bhs ,
222- start , end , datasync );
223- }
224212int mmb_fsync (struct file * file , struct mapping_metadata_bhs * mmb ,
225213 loff_t start , loff_t end , bool datasync );
226- static inline int generic_buffers_fsync (struct file * file ,
227- loff_t start , loff_t end , bool datasync )
228- {
229- return mmb_fsync (file , & file -> f_mapping -> i_metadata_bhs ,
230- start , end , datasync );
231- }
232214void clean_bdev_aliases (struct block_device * bdev , sector_t block ,
233215 sector_t len );
234216static inline void clean_bdev_bh_alias (struct buffer_head * bh )
@@ -537,14 +519,6 @@ void mmb_init(struct mapping_metadata_bhs *mmb, struct address_space *mapping);
537519bool mmb_has_buffers (struct mapping_metadata_bhs * mmb );
538520void mmb_invalidate (struct mapping_metadata_bhs * mmb );
539521int mmb_sync (struct mapping_metadata_bhs * mmb );
540- static inline void invalidate_inode_buffers (struct inode * inode )
541- {
542- mmb_invalidate (& inode -> i_data .i_metadata_bhs );
543- }
544- static inline int sync_mapping_buffers (struct address_space * mapping )
545- {
546- return mmb_sync (& mapping -> i_metadata_bhs );
547- }
548522void invalidate_bh_lrus (void );
549523void invalidate_bh_lrus_cpu (void );
550524bool has_bh_in_lru (int cpu , void * dummy );
@@ -555,8 +529,6 @@ extern int buffer_heads_over_limit;
555529static inline void buffer_init (void ) {}
556530static inline bool try_to_free_buffers (struct folio * folio ) { return true; }
557531static inline int mmb_sync (struct mapping_metadata_bhs * mmb ) { return 0 ; }
558- static inline void invalidate_inode_buffers (struct inode * inode ) {}
559- static inline int sync_mapping_buffers (struct address_space * mapping ) { return 0 ; }
560532static inline void invalidate_bh_lrus (void ) {}
561533static inline void invalidate_bh_lrus_cpu (void ) {}
562534static inline bool has_bh_in_lru (int cpu , void * dummy ) { return false; }
0 commit comments