linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.21-rc5-git12 new aops patchset
@ 2007-04-05  9:46 Nick Piggin
  2007-04-05 16:22 ` Badari Pulavarty
  2007-04-05 18:10 ` Mark Fasheh
  0 siblings, 2 replies; 4+ messages in thread
From: Nick Piggin @ 2007-04-05  9:46 UTC (permalink / raw)
  To: Linux Filesystems, Mark Fasheh; +Cc: dgc

http://www.kernel.org/pub/linux/kernel/people/npiggin/patches/new-aops/

Files are 2.6.21-rc5-git12*

This contains an update to recent git kernels from Mark, ext3 merge,
XFS fix from David Chinner, some FUSE fixes (now lightly tested and
working).

Documents perform_write a little better, and implements
simple_perform_write, and fuse_perform_write. However, note that
as per discussion, we may opt to take perform_write out of this
patchset, and instead work towards making generic_file_aio_write
easier to implement. I'm open to discussion, though.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.6.21-rc5-git12 new aops patchset
  2007-04-05  9:46 2.6.21-rc5-git12 new aops patchset Nick Piggin
@ 2007-04-05 16:22 ` Badari Pulavarty
  2007-04-06  1:39   ` Nick Piggin
  2007-04-05 18:10 ` Mark Fasheh
  1 sibling, 1 reply; 4+ messages in thread
From: Badari Pulavarty @ 2007-04-05 16:22 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Linux Filesystems, Mark Fasheh, dgc

On Thu, 2007-04-05 at 11:46 +0200, Nick Piggin wrote:
> http://www.kernel.org/pub/linux/kernel/people/npiggin/patches/new-aops/
> 
> Files are 2.6.21-rc5-git12*


ext3_ordered_write_end() did

+		ret = block_write_end(file, mapping, pos, len, copied, page, fsdata);
+		if (ret >= 0)
+			copied = ret;
	}
 	ret2 = ext3_journal_stop(handle);
 	if (!ret)
 		ret = ret2;
-	return ret;
+	return ret ? ret : copied;

If we do this, we are going to ignore ext3_journal_stop() errors
almost all the time (since "ret" will be mostly positive).

Instead can we do this ?

+		copied = block_write_end(file, mapping, pos, len, copied, page, fsdata);
+		if (copied < 0)
+			ret = copied;

Thanks,
Badari


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.6.21-rc5-git12 new aops patchset
  2007-04-05  9:46 2.6.21-rc5-git12 new aops patchset Nick Piggin
  2007-04-05 16:22 ` Badari Pulavarty
@ 2007-04-05 18:10 ` Mark Fasheh
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Fasheh @ 2007-04-05 18:10 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Linux Filesystems, dgc

On Thu, Apr 05, 2007 at 11:46:05AM +0200, Nick Piggin wrote:
> However, note that as per discussion, we may opt to take perform_write out
> of this patchset, and instead work towards making generic_file_aio_write
> easier to implement. I'm open to discussion, though.

I'd be fine with that - if the file systems can get at all the checks and
iov_iter stuff it lets them fine tune their write logic. Ocfs2 for instance
has very different locking for o_direct / buffered and so goes to some bit
of pain to avoid the fallback code in __generic_file_aio_write_nolock().
It'd be much simpler to just call some helpers for buffered writes and
change the code to never do that.
	--Mark

--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh@oracle.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.6.21-rc5-git12 new aops patchset
  2007-04-05 16:22 ` Badari Pulavarty
@ 2007-04-06  1:39   ` Nick Piggin
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Piggin @ 2007-04-06  1:39 UTC (permalink / raw)
  To: Badari Pulavarty; +Cc: Linux Filesystems, Mark Fasheh, dgc

On Thu, Apr 05, 2007 at 09:22:35AM -0700, Badari Pulavarty wrote:
> On Thu, 2007-04-05 at 11:46 +0200, Nick Piggin wrote:
> > http://www.kernel.org/pub/linux/kernel/people/npiggin/patches/new-aops/
> > 
> > Files are 2.6.21-rc5-git12*
> 
> 
> ext3_ordered_write_end() did
> 
> +		ret = block_write_end(file, mapping, pos, len, copied, page, fsdata);
> +		if (ret >= 0)
> +			copied = ret;
> 	}
>  	ret2 = ext3_journal_stop(handle);
>  	if (!ret)
>  		ret = ret2;
> -	return ret;
> +	return ret ? ret : copied;
> 
> If we do this, we are going to ignore ext3_journal_stop() errors
> almost all the time (since "ret" will be mostly positive).
> 
> Instead can we do this ?
> 
> +		copied = block_write_end(file, mapping, pos, len, copied, page, fsdata);
> +		if (copied < 0)
> +			ret = copied;

Definitely, thank you.

Nick

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-06  1:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05  9:46 2.6.21-rc5-git12 new aops patchset Nick Piggin
2007-04-05 16:22 ` Badari Pulavarty
2007-04-06  1:39   ` Nick Piggin
2007-04-05 18:10 ` Mark Fasheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).