diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
tree | 50c101806f4d3b6585222dda060559eb4f3e005a /fs/jffs/inode-v23.c | |
parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) |
Merge branch 'master' of /usr/src/ntfs-2.6/
Diffstat (limited to 'fs/jffs/inode-v23.c')
-rw-r--r-- | fs/jffs/inode-v23.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 3dcc6d2162cb..fc3855a1aef3 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c | |||
@@ -757,7 +757,7 @@ jffs_do_readpage_nolock(struct file *file, struct page *page) | |||
757 | 757 | ||
758 | read_len = 0; | 758 | read_len = 0; |
759 | result = 0; | 759 | result = 0; |
760 | offset = page->index << PAGE_CACHE_SHIFT; | 760 | offset = page_offset(page); |
761 | 761 | ||
762 | kmap(page); | 762 | kmap(page); |
763 | buf = page_address(page); | 763 | buf = page_address(page); |
@@ -1415,7 +1415,7 @@ jffs_file_write(struct file *filp, const char *buf, size_t count, | |||
1415 | * This will never trigger with sane page sizes. leave it in | 1415 | * This will never trigger with sane page sizes. leave it in |
1416 | * anyway, since I'm thinking about how to merge larger writes | 1416 | * anyway, since I'm thinking about how to merge larger writes |
1417 | * (the current idea is to poke a thread that does the actual | 1417 | * (the current idea is to poke a thread that does the actual |
1418 | * I/O and starts by doing a down(&inode->i_sem). then we | 1418 | * I/O and starts by doing a mutex_lock(&inode->i_mutex). then we |
1419 | * would need to get the page cache pages and have a list of | 1419 | * would need to get the page cache pages and have a list of |
1420 | * I/O requests and do write-merging here. | 1420 | * I/O requests and do write-merging here. |
1421 | * -- prumpf | 1421 | * -- prumpf |
@@ -1545,7 +1545,7 @@ jffs_commit_write(struct file *filp, struct page *page, | |||
1545 | { | 1545 | { |
1546 | void *addr = page_address(page) + from; | 1546 | void *addr = page_address(page) + from; |
1547 | /* XXX: PAGE_CACHE_SHIFT or PAGE_SHIFT */ | 1547 | /* XXX: PAGE_CACHE_SHIFT or PAGE_SHIFT */ |
1548 | loff_t pos = (page->index<<PAGE_CACHE_SHIFT) + from; | 1548 | loff_t pos = page_offset(page) + from; |
1549 | 1549 | ||
1550 | return jffs_file_write(filp, addr, to-from, &pos); | 1550 | return jffs_file_write(filp, addr, to-from, &pos); |
1551 | } /* jffs_commit_write() */ | 1551 | } /* jffs_commit_write() */ |