diff options
author | Andrew Morton <akpm@osdl.org> | 2005-11-07 00:59:15 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 07:53:35 -0800 |
commit | 49364ce2534418462d681ad99e52e79a00b0f40b (patch) | |
tree | 0eacbe38add427ee9fd1e67f465510c8c2ceb638 /fs | |
parent | cd6b0762a04978baf48412456a687842de97e381 (diff) | |
download | linux-stable-49364ce2534418462d681ad99e52e79a00b0f40b.tar.gz linux-stable-49364ce2534418462d681ad99e52e79a00b0f40b.tar.bz2 linux-stable-49364ce2534418462d681ad99e52e79a00b0f40b.zip |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |