File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ static void bdev_write_inode(struct block_device *bdev)
75
75
}
76
76
77
77
/* Kill _all_ buffers and pagecache , dirty or not.. */
78
- void kill_bdev (struct block_device * bdev )
78
+ static void kill_bdev (struct block_device * bdev )
79
79
{
80
80
struct address_space * mapping = bdev -> bd_inode -> i_mapping ;
81
81
@@ -84,8 +84,7 @@ void kill_bdev(struct block_device *bdev)
84
84
85
85
invalidate_bh_lrus ();
86
86
truncate_inode_pages (mapping , 0 );
87
- }
88
- EXPORT_SYMBOL (kill_bdev );
87
+ }
89
88
90
89
/* Invalidate clean unused buffers and pagecache. */
91
90
void invalidate_bdev (struct block_device * bdev )
Original file line number Diff line number Diff line change @@ -2592,7 +2592,6 @@ extern void bdput(struct block_device *);
2592
2592
extern void invalidate_bdev (struct block_device * );
2593
2593
extern void iterate_bdevs (void (* )(struct block_device * , void * ), void * );
2594
2594
extern int sync_blockdev (struct block_device * bdev );
2595
- extern void kill_bdev (struct block_device * );
2596
2595
extern struct super_block * freeze_bdev (struct block_device * );
2597
2596
extern void emergency_thaw_all (void );
2598
2597
extern void emergency_thaw_bdev (struct super_block * sb );
@@ -2608,7 +2607,6 @@ static inline bool sb_is_blkdev_sb(struct super_block *sb)
2608
2607
#else
2609
2608
static inline void bd_forget (struct inode * inode ) {}
2610
2609
static inline int sync_blockdev (struct block_device * bdev ) { return 0 ; }
2611
- static inline void kill_bdev (struct block_device * bdev ) {}
2612
2610
static inline void invalidate_bdev (struct block_device * bdev ) {}
2613
2611
2614
2612
static inline struct super_block * freeze_bdev (struct block_device * sb )
You can’t perform that action at this time.
0 commit comments