Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39201
b: refs/heads/master
c: ebf7a22
h: refs/heads/master
i:
  39199: b4e1310
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Oct 10, 2006
1 parent d1170ac commit d1b0a90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 1601ff0e29cfe112b06aa9bb2fb3519a1125baaa
refs/heads/master: ebf7a227dd1d810203a19642655d2fa293f395dd
5 changes: 4 additions & 1 deletion trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,10 @@ EXPORT_SYMBOL(mark_buffer_dirty_inode);
*/
int __set_page_dirty_buffers(struct page *page)
{
struct address_space * const mapping = page->mapping;
struct address_space * const mapping = page_mapping(page);

if (unlikely(!mapping))
return !TestSetPageDirty(page);

spin_lock(&mapping->private_lock);
if (page_has_buffers(page)) {
Expand Down

0 comments on commit d1b0a90

Please sign in to comment.