Re: unused 'size' assignment in filemap_nopage

2005-03-23 Thread Jeff Moyer
==> Regarding Re: unused 'size' assignment in filemap_nopage; Herbert Xu <[EMAIL PROTECTED]> adds: herbert> Jeff Moyer <[EMAIL PROTECTED]> wrote: >> After this, size is not referenced. So, either this potential >> reassignment of size is superfluous, or

Re: unused 'size' assignment in filemap_nopage

2005-03-23 Thread Herbert Xu
Jeff Moyer <[EMAIL PROTECTED]> wrote: > > After this, size is not referenced. So, either this potential reassignment > of size is superfluous, or we are missing some other code later on in the > function. If it is the former, I've attached a patch which will remove the > code. Yes it's obsolete

Re: unused 'size' assignment in filemap_nopage

2005-03-22 Thread Jan Engelhardt
> size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; > if (pgoff >= size) > goto outside_data_content; > ... > if (size > endoff) > size = endoff; > >After this, size is not referenced. So, either this potential reassignment >