| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 7/7] split up xlog_recover_process_iunlinks |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 28 Oct 2008 05:14:46 -0400 |
| In-reply-to: | <20081028071750.GV4985@disturbed> |
| References: | <20081027133938.GH1109@infradead.org> <20081028071750.GV4985@disturbed> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
> > + error = xfs_iget(mp, NULL, ino, 0, 0, &ip, 0); > > + if (error) > > + goto fail; > > + > > + /* > > + * Get the on disk inode to find the next inode in the bucket. > > + */ > > + ASSERT(ip != NULL); > > + error = xfs_itobp(mp, NULL, ip, &dip, &ibp, 0, 0, XFS_BUF_LOCK); > > + if (error) > > + goto fail; > > Jumping to 'fail' at this point leaks the xfs_inode returned from > xfs_iget(). Hmmmm - it appears the original code leaked too.... > > Also, I don't think we need the assert for ip, either. If it's NULL > then we'll panic immediately on entering xfs_itobp(). Yeah. I'll fix this in a separate patch as this one is just suposed to be purely refactoring. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Is it possible the check an frozen XFS filesytem to avoid downtime, Martin Steigerwald |
|---|---|
| Next by Date: | Re: Map a disk LBA to filename?, Carsten Aulbert |
| Previous by Thread: | Re: [PATCH 7/7] split up xlog_recover_process_iunlinks, Dave Chinner |
| Next by Thread: | Re: [PATCH 7/7] split up xlog_recover_process_iunlinks, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |