aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/tail_conversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/tail_conversion.c')
-rw-r--r--fs/reiserfs/tail_conversion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/tail_conversion.c b/fs/reiserfs/tail_conversion.c
index f41e19b4bb42..2d5489b0a269 100644
--- a/fs/reiserfs/tail_conversion.c
+++ b/fs/reiserfs/tail_conversion.c
@@ -151,7 +151,7 @@ int direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode,
151 */ 151 */
152 if (up_to_date_bh) { 152 if (up_to_date_bh) {
153 unsigned pgoff = 153 unsigned pgoff =
154 (tail_offset + total_tail - 1) & (PAGE_CACHE_SIZE - 1); 154 (tail_offset + total_tail - 1) & (PAGE_SIZE - 1);
155 char *kaddr = kmap_atomic(up_to_date_bh->b_page); 155 char *kaddr = kmap_atomic(up_to_date_bh->b_page);
156 memset(kaddr + pgoff, 0, blk_size - total_tail); 156 memset(kaddr + pgoff, 0, blk_size - total_tail);
157 kunmap_atomic(kaddr); 157 kunmap_atomic(kaddr);
@@ -271,7 +271,7 @@ int indirect2direct(struct reiserfs_transaction_handle *th,
271 * the page was locked and this part of the page was up to date when 271 * the page was locked and this part of the page was up to date when
272 * indirect2direct was called, so we know the bytes are still valid 272 * indirect2direct was called, so we know the bytes are still valid
273 */ 273 */
274 tail = tail + (pos & (PAGE_CACHE_SIZE - 1)); 274 tail = tail + (pos & (PAGE_SIZE - 1));
275 275
276 PATH_LAST_POSITION(path)++; 276 PATH_LAST_POSITION(path)++;
277 277