[PATCH] ubifs: add missing ui pointer in debugging code

hujianyang hujianyang at huawei.com
Tue May 27 19:27:12 PDT 2014


Hi Artem,

I think you made a small mistake:

>         spin_lock(&ui->ui_lock);
> -       ubifs_assert(page->index <= ui->synced_i_size << PAGE_CACHE_SIZE);
> +       ubifs_assert(page->index <= ui->synced_i_size >> PAGE_CACHE_SIZE);

Here should be PAGE_CACHE_SHIFT, not PAGE_CACHE_SIZE.

Thanks.

Hu




More information about the linux-mtd mailing list