Re: [PATCH 04/31] ITER_PIPE: allocate buffers as we go in copy-to-pipe primitives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 18, 2022 at 06:35:10AM +0100, Al Viro wrote:
> +
> +		if (page)

		if (!page)
that is...

> +			break;
> +		p = kmap_local_page(page);
>  		memset(p + off, 0, chunk);
>  		kunmap_local(p);
> -		i->head = i_head;
> -		i->iov_offset = off + chunk;
>  		n -= chunk;
> -		off = 0;
> -		i_head++;
> -	} while (n);
> -	i->count -= bytes;
> +	}
>  	return bytes;
>  }
>  
> -- 
> 2.30.2
> 



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux