From: Andrew Morton Date: Mon, 7 Nov 2005 08:59:15 +0000 (-0800) Subject: [PATCH] write_inode_now(): write inode if not BDI_CAP_NO_WRITEBACK X-Git-Tag: MMI-PSA29.97-13-9~54751 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49364ce2534418462d681ad99e52e79a00b0f40b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: Linus Torvalds --- diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index c27f8d4098be..1361a4a64157 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -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);