Commit 4301efa4 authored by Jan Kara's avatar Jan Kara Committed by Theodore Ts'o

writeback: Export inode_io_list_del()

Ext4 needs to remove inode from writeback lists after it is out of
visibility of its journalling machinery (which can still dirty the
inode). Export inode_io_list_del() for it.
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200421085445.5731-3-jack@suse.czSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 3bbd0ef2
...@@ -1126,6 +1126,7 @@ void inode_io_list_del(struct inode *inode) ...@@ -1126,6 +1126,7 @@ void inode_io_list_del(struct inode *inode)
inode_io_list_del_locked(inode, wb); inode_io_list_del_locked(inode, wb);
spin_unlock(&wb->list_lock); spin_unlock(&wb->list_lock);
} }
EXPORT_SYMBOL(inode_io_list_del);
/* /*
* mark an inode as under writeback on the sb * mark an inode as under writeback on the sb
......
...@@ -143,8 +143,6 @@ extern int dentry_needs_remove_privs(struct dentry *dentry); ...@@ -143,8 +143,6 @@ extern int dentry_needs_remove_privs(struct dentry *dentry);
/* /*
* fs-writeback.c * fs-writeback.c
*/ */
extern void inode_io_list_del(struct inode *inode);
extern long get_nr_dirty_inodes(void); extern long get_nr_dirty_inodes(void);
extern int invalidate_inodes(struct super_block *, bool); extern int invalidate_inodes(struct super_block *, bool);
......
...@@ -197,6 +197,7 @@ void wakeup_flusher_threads(enum wb_reason reason); ...@@ -197,6 +197,7 @@ void wakeup_flusher_threads(enum wb_reason reason);
void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
enum wb_reason reason); enum wb_reason reason);
void inode_wait_for_writeback(struct inode *inode); void inode_wait_for_writeback(struct inode *inode);
void inode_io_list_del(struct inode *inode);
/* writeback.h requires fs.h; it, too, is not included from here. */ /* writeback.h requires fs.h; it, too, is not included from here. */
static inline void wait_on_inode(struct inode *inode) static inline void wait_on_inode(struct inode *inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment