Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49364ce2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cd6b0762
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);