| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH V2] xfs: truncate_setsize should be outside transactions |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Fri, 2 May 2014 03:08:02 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20140502070054.GC26353@dastard> |
| References: | <1398983979-23696-1-git-send-email-david@xxxxxxxxxxxxx> <20140502045443.GA8867@xxxxxxxxxxxxx> <20140502050053.GA17578@xxxxxxxxxxxxx> <20140502064700.GB26353@dastard> <20140502070054.GC26353@dastard> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, May 02, 2014 at 05:00:54PM +1000, Dave Chinner wrote: > The reason truncate_setsize() was located where in this place was > that we can't change the file size until after we are in the > transaction context and the operation will either succeed or shut > down the filesystem on failure. Hence we have to split > truncate_setsize() back into a pagecache operation that occurs > before the transaction context, and a i_size_write() call that > happens within the transaction context. Further updating myself earlier on the comment next to truncate_pagecache claims that the file size must have been updated before, but I can't see a reason for that. This version looks fine to me: Reviewed-by: Christoph Hellwig <hch@xxxxxx> |
| Previous by Date: | Re: [PATCH] xfs: initialize default acls for ->tmpfile(), Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH V2] xfs: truncate_setsize should be outside transactions, Brian Foster |
| Previous by Thread: | [PATCH V2] xfs: truncate_setsize should be outside transactions, Dave Chinner |
| Next by Thread: | Re: [PATCH V2] xfs: truncate_setsize should be outside transactions, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |