Re: [PATCH] Btrfs: fix delayed insertion reservations V2

2011-11-05 Thread Chris Mason
On Fri, Nov 04, 2011 at 08:47:56PM -0400, Chris Mason wrote: On Fri, Nov 04, 2011 at 05:18:54PM -0400, Josef Bacik wrote: V1-V2: I stupidly thought I could get away with some flushing if we needed space but I was wrong, we could deadlock, so add a btrfs_add_bytes_noflush variant that will

Re: [PATCH] Btrfs: fix delayed insertion reservations V2

2011-11-05 Thread Mitch Harder
On Sat, Nov 5, 2011 at 6:46 AM, Chris Mason chris.ma...@oracle.com wrote: On Fri, Nov 04, 2011 at 08:47:56PM -0400, Chris Mason wrote: On Fri, Nov 04, 2011 at 05:18:54PM -0400, Josef Bacik wrote: V1-V2: I stupidly thought I could get away with some flushing if we needed space but I was

Re: [PATCH] Btrfs: fix delayed insertion reservations V2

2011-11-04 Thread Chris Mason
On Fri, Nov 04, 2011 at 05:18:54PM -0400, Josef Bacik wrote: V1-V2: I stupidly thought I could get away with some flushing if we needed space but I was wrong, we could deadlock, so add a btrfs_add_bytes_noflush variant that will not do any flushing and will just return ENOSPC which will let