writeback: Export inode_io_list_del()
authorJan Kara <jack@suse.cz>
Tue, 21 Apr 2020 08:54:44 +0000 (10:54 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Jun 2020 03:16:49 +0000 (23:16 -0400)
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: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200421085445.5731-3-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/fs-writeback.c
fs/internal.h
include/linux/writeback.h

index 76ac9c7d32ec7ee2e719e48d2956276676810d92..e58bd5f758d0321f006a449c9d109c55cd08933c 100644 (file)
@@ -1126,6 +1126,7 @@ void inode_io_list_del(struct inode *inode)
        inode_io_list_del_locked(inode, wb);
        spin_unlock(&wb->list_lock);
 }
+EXPORT_SYMBOL(inode_io_list_del);
 
 /*
  * mark an inode as under writeback on the sb
index aa5d45524e87da09d728abe6c7868bce8fb4d030..8819d0d58b0342de2a2cca352131446e21e4c0f5 100644 (file)
@@ -143,8 +143,6 @@ extern int dentry_needs_remove_privs(struct dentry *dentry);
 /*
  * fs-writeback.c
  */
-extern void inode_io_list_del(struct inode *inode);
-
 extern long get_nr_dirty_inodes(void);
 extern int invalidate_inodes(struct super_block *, bool);
 
index a19d845dd7eb96fd9414ad23d8d929fc34737cc9..902aa317621bfce0e800a730628ef334c38d9dae 100644 (file)
@@ -197,6 +197,7 @@ void wakeup_flusher_threads(enum wb_reason reason);
 void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi,
                                enum wb_reason reason);
 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. */
 static inline void wait_on_inode(struct inode *inode)