| To: | Barry Naujok <bnaujok@xxxxxxx> |
|---|---|
| Subject: | Re: [REVIEW] Refactor xfs_repair's process_dinode_int |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Wed, 21 Nov 2007 15:05:26 +0000 |
| Cc: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx> |
| In-reply-to: | <op.t1tl53ac3jf8g2@pc-bnaujok.melbourne.sgi.com> |
| References: | <op.t1tl53ac3jf8g2@pc-bnaujok.melbourne.sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.3i |
On Thu, Nov 15, 2007 at 05:40:41PM +1100, Barry Naujok wrote: > Implementing casefold-table checking in xfs_repair, I have to > touch process_dinode_int. It's a horrendous function. The attached > patch hopefully makes it much clearer what it does and removes a > lot of duplicate code when bad inodes are found. There are some > obscure bug fixes too (eg. two places where the inode's di_mode is > updated, but not marked dirty - libxfs would have tossed it). > > The refactoring involved removing unused variables, working out > what various variables actually did and use them appropriately > and break blocks of functionality into separate functions. This looks very good f4rom a quick glance over it. I can't claim I've verified that it still does the same thing, though. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Turn off XBF_READ_AHEAD in io completion, Christoph Hellwig |
|---|---|
| Next by Date: | Re: 2.6.24-rc2 XFS nfsd hang, Christoph Hellwig |
| Previous by Thread: | [REVIEW] Refactor xfs_repair's process_dinode_int, Barry Naujok |
| Next by Thread: | SeLinux "fixfiles relabel" shuts down XFS, Jason White |
| Indexes: | [Date] [Thread] [Top] [All Lists] |