aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/page-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/page-io.c')
-rw-r--r--fs/ext4/page-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index d7d0c7b46ed4..d488f80ee32d 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -197,14 +197,15 @@ static void dump_completed_IO(struct inode *inode, struct list_head *head)
197static void ext4_add_complete_io(ext4_io_end_t *io_end) 197static void ext4_add_complete_io(ext4_io_end_t *io_end)
198{ 198{
199 struct ext4_inode_info *ei = EXT4_I(io_end->inode); 199 struct ext4_inode_info *ei = EXT4_I(io_end->inode);
200 struct ext4_sb_info *sbi = EXT4_SB(io_end->inode->i_sb);
200 struct workqueue_struct *wq; 201 struct workqueue_struct *wq;
201 unsigned long flags; 202 unsigned long flags;
202 203
203 /* Only reserved conversions from writeback should enter here */ 204 /* Only reserved conversions from writeback should enter here */
204 WARN_ON(!(io_end->flag & EXT4_IO_END_UNWRITTEN)); 205 WARN_ON(!(io_end->flag & EXT4_IO_END_UNWRITTEN));
205 WARN_ON(!io_end->handle); 206 WARN_ON(!io_end->handle && sbi->s_journal);
206 spin_lock_irqsave(&ei->i_completed_io_lock, flags); 207 spin_lock_irqsave(&ei->i_completed_io_lock, flags);
207 wq = EXT4_SB(io_end->inode->i_sb)->rsv_conversion_wq; 208 wq = sbi->rsv_conversion_wq;
208 if (list_empty(&ei->i_rsv_conversion_list)) 209 if (list_empty(&ei->i_rsv_conversion_list))
209 queue_work(wq, &ei->i_rsv_conversion_work); 210 queue_work(wq, &ei->i_rsv_conversion_work);
210 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list); 211 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list);