OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/2] fs: remove duplicated iovec checking code v8
Re: [PATCH 1/2] fs: remove duplicated iovec checking code v8 [message #11318 is a reply to message #11308] Mon, 19 March 2007 09:28 Go to previous message
Christoph Hellwig is currently offline  Christoph Hellwig
Messages: 59
Registered: April 2006
Member
On Mon, Mar 19, 2007 at 10:49:01AM +0300, Dmitriy Monakhov wrote:
>
> Where are several places where the same code used for iovec checks.
> This patch just move this code to separate helper function, and replace
> duplicated code with it. IMHO it is better because these are checks that
> we want for all filesystems/drivers that use vectored I/O.

Please move this into the common code path, so it's checked before
entering the filesystem. This won't cover the calculating count
until we have an iodesc/uio strcuture to pass it down, so feel free
to add a tiny helper for that temporaily.
 
Read Message
Read Message
Previous Topic: [PATCH 2/2] fs: incorrect direct io error handling v8
Next Topic: [IA64] unwind did not work for processes born with CLONE_STOPPED
Goto Forum:
  


Current Time: Sat Aug 02 19:22:32 GMT 2025

Total time taken to generate the page: 0.91044 seconds