Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165735
b: refs/heads/master
c: 6746aff
h: refs/heads/master
i:
  165733: 04fd0f3
  165731: 9ba918f
  165727: 6dde4fd
v: v3
  • Loading branch information
Wu Fengguang authored and Andi Kleen committed Sep 16, 2009
1 parent 43069bc commit 3a05d9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 257187362123f15d9d1e09918cf87cebbea4e786
refs/heads/master: 6746aff74da293b5fd24e5c68b870b721e86cd5f
7 changes: 7 additions & 0 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,13 @@ int redirty_page_for_writepage(struct writeback_control *wbc, struct page *page)
EXPORT_SYMBOL(redirty_page_for_writepage);

/*
* Dirty a page.
*
* For pages with a mapping this should be done under the page lock
* for the benefit of asynchronous memory errors who prefer a consistent
* dirty state. This rule can be broken in some special cases,
* but should be better not to.
*
* If the mapping doesn't provide a set_page_dirty a_op, then
* just fall through and assume that it wants buffer_heads.
*/
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,8 @@ shmem_write_end(struct file *file, struct address_space *mapping,
if (pos + copied > inode->i_size)
i_size_write(inode, pos + copied);

unlock_page(page);
set_page_dirty(page);
unlock_page(page);
page_cache_release(page);

return copied;
Expand Down Expand Up @@ -1968,13 +1968,13 @@ static int shmem_symlink(struct inode *dir, struct dentry *dentry, const char *s
iput(inode);
return error;
}
unlock_page(page);
inode->i_mapping->a_ops = &shmem_aops;
inode->i_op = &shmem_symlink_inode_operations;
kaddr = kmap_atomic(page, KM_USER0);
memcpy(kaddr, symname, len);
kunmap_atomic(kaddr, KM_USER0);
set_page_dirty(page);
unlock_page(page);
page_cache_release(page);
}
if (dir->i_mode & S_ISGID)
Expand Down

0 comments on commit 3a05d9a

Please sign in to comment.