| To: | Stefan Priebe - Profihost AG <s.priebe@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Sat, 4 Jun 2016 10:04:49 +1000 |
| Cc: | Brian Foster <bfoster@xxxxxxxxxx>, "xfs-masters@xxxxxxxxxxx" <xfs-masters@xxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <5751C4B8.2080301@xxxxxxxxxxxx> |
| References: | <20160511133417.GA42410@xxxxxxxxxxxxxxx> <57333BA4.4040402@xxxxxxxxxxxx> <20160511155951.GF42410@xxxxxxxxxxxxxxx> <5738576B.4010208@xxxxxxxxxxxx> <20160515115017.GA6433@xxxxxxxxxxxxxx> <57386E84.3090606@xxxxxxxxxxxx> <20160516010602.GA24980@xxxxxxxxxxxxxxx> <57420A47.2000700@xxxxxxxxxxxx> <20160522213850.GE26977@dastard> <5751C4B8.2080301@xxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Fri, Jun 03, 2016 at 07:56:08PM +0200, Stefan Priebe - Profihost AG wrote: > Hi, > > should i remove the complete if conditions incl. the return 0 or should > id convert it to if without WARN_ONCE? like below? > > if (WARN_ON_ONCE(delalloc)) > return 0; > if (WARN_ON_ONCE(unwritten)) > return 0; > > => > > if (delalloc) > return 0; > if (unwritten) > return 0; Yes, you need to keep the checks and returns. That's what I meant when I said that "XFS handles the dirty page case correctly in this case". If the page is dirty, we should not be attempting to release the buffers, and that is what the code does. It's just noisy about it... Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage, Holger HoffstÃtte |
|---|---|
| Next by Date: | [PATCH] Allow compiling xfsprogs in a cross compile environment., Gwendal Grignou |
| Previous by Thread: | Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage, Holger HoffstÃtte |
| Next by Thread: | Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage, Stefan Priebe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |