Artem B. Bityutskiy wrote: > if ((inode->i_size >> PAGE_CACHE_SHIFT) >= pg->index) { > /* > * This is the last page, so unconditionally re-write it fully. > */ > start = 0; > } > Oh, actually if ((inode->i_size >> PAGE_CACHE_SHIFT) == pg->index) -- Best Regards, Artem B. Bityutskiy, St.-Petersburg, Russia.