projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[POWERPC] Update PCI nodes in the 83xx/85xx boards device tree
[powerpc.git]
/
fs
/
buffer.c
diff --git
a/fs/buffer.c
b/fs/buffer.c
index
02ebb1f
..
0e5ec37
100644
(file)
--- a/
fs/buffer.c
+++ b/
fs/buffer.c
@@
-2221,7
+2221,7
@@
block_page_mkwrite(struct vm_area_struct *vma, struct page *page,
lock_page(page);
size = i_size_read(inode);
if ((page->mapping != inode->i_mapping) ||
- (
(page->index << PAGE_CACHE_SHIFT
) > size)) {
+ (
page_offset(page
) > size)) {
/* page got truncated out from underneath us */
goto out_unlock;
}