lkml.org 
[lkml]   [1997]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] Re: NFS writes
Date
To: linux-kernel@vger.rutgers.edu
Subject: Re: [patch] Re: NFS writes
X-Newsreader: TIN [UNIX 1.3 950515BETA PL0]

In article <9705261819.AA23413@nodebonn.muc> you wrote:
: The following patch (against 2.1.40) fixes this by adding a third io buffer
: (containing from 1 to 3 bytes) if padding is necessary.
: Maybe there's a better way to do this?

It is safe to just pad out the buffer to a multiple of four. Any write
data that goes through nfs_xdr_writeargs is from the page cache anyway,
so there shouldn't be any page faults etc. You just send a few bytes more
of the dirty page than you actually want the server to write.

This fix will be part of the next set of NFS patches (which will also
feature preliminary NFSv3 support, FWIW).

Cheers
Olaf
--
Olaf Kirch | --- o --- Nous sommes du soleil we love when we play
okir@monad.swb.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.025 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site