A JFFS2 optimization related to syslog

Artem B. Bityutskiy dedekind at yandex.ru
Tue Apr 18 07:51:47 EDT 2006


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.




More information about the linux-mtd mailing list