提交 49364ce2 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 cd6b0762
...@@ -562,7 +562,7 @@ int write_inode_now(struct inode *inode, int sync) ...@@ -562,7 +562,7 @@ int write_inode_now(struct inode *inode, int sync)
}; };
if (!mapping_cap_writeback_dirty(inode->i_mapping)) if (!mapping_cap_writeback_dirty(inode->i_mapping))
return 0; wbc.nr_to_write = 0;
might_sleep(); might_sleep();
spin_lock(&inode_lock); spin_lock(&inode_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册