Skip to content
Snippets Groups Projects
Commit d1dab2c4 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch HEAD

Fix line wrapping.
parent 79d81a45
No related branches found
No related tags found
No related merge requests found
......@@ -219,8 +219,7 @@ void ll_truncate(struct inode *inode)
if (unlikely((ll_i2sbi(inode)->ll_flags & LL_SBI_CHECKSUM) &&
(i_size_read(inode) & ~CFS_PAGE_MASK))) {
/* If the truncate leaves behind a partial page, update its
* checksum. */
/* If the truncate leaves a partial page, update its checksum */
struct page *page = find_get_page(inode->i_mapping,
i_size_read(inode) >>
CFS_PAGE_SHIFT);
......@@ -934,7 +933,7 @@ static int queue_or_sync_write(struct obd_export *exp, struct inode *inode,
"sync write before EOF: size_index %lu, to %d\n",
size_index, to);
to = CFS_PAGE_SIZE;
} else if (to != CFS_PAGE_SIZE && llap->llap_page->index == size_index) {
} else if (to != CFS_PAGE_SIZE && llap->llap_page->index == size_index){
int size_to = i_size_read(inode) & ~CFS_PAGE_MASK;
LL_CDEBUG_PAGE(D_PAGE, llap->llap_page,
"sync write at EOF: size_index %lu, to %d/%d\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment