1
0
Fork 0

[PATCH] write_inode_now(): write inode if not BDI_CAP_NO_WRITEBACK

If the backing_dev_info doesn't have BDI_CAP_NO_WRITEBACK we're not supposed
to write back an inode's pages.  But in this situation write_inode_now()
refuses to write the inode itself as well.  Fix.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
hifive-unleashed-5.1
Andrew Morton 2005-11-07 00:59:15 -08:00 committed by Linus Torvalds
parent cd6b0762a0
commit 49364ce253
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ int write_inode_now(struct inode *inode, int sync)
};
if (!mapping_cap_writeback_dirty(inode->i_mapping))
return 0;
wbc.nr_to_write = 0;
might_sleep();
spin_lock(&inode_lock);