| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 12/14] xfsprogs: make fsr use mntinfo when there is no mntent |
| From: | Jan Tulak <jtulak@xxxxxxxxxx> |
| Date: | Thu, 24 Sep 2015 16:38:49 +0200 |
| Cc: | xfs-oss <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20150923033655.GQ3902@dastard> |
| References: | <1442311164-12921-1-git-send-email-jtulak@xxxxxxxxxx> <1442311164-12921-13-git-send-email-jtulak@xxxxxxxxxx> <20150923033655.GQ3902@dastard> |
|
On Wed, Sep 23, 2015 at 5:36 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
I did a little refactoring to solve it. What I would like to ask abâout is this: When I can put ifdef just inside of a function like fnc(void) { #ifdef... #else ... #endif }, with little to no code outside of the ifdef, is it better to put the ifdef outside, or keep it inside? I suppose the outside placement allows for easier changes for one of the branches when there would be a new function just for a specific branch. But on the other side, it makes it easier to forget the second function in another branch when making some change later. âCheers, Janâ â-â |
| Previous by Date: | Re: [PATCH v2 03/12] libxfs: don't hardcode cycle 1 into unmount op header, Brian Foster |
|---|---|
| Next by Date: | Re: [PATCH 5/5] xfs: incorporate sysfs/kobject in xfsstats: handlers take kobjects., Bill O'Donnell |
| Previous by Thread: | Re: [PATCH 12/14] xfsprogs: make fsr use mntinfo when there is no mntent, Dave Chinner |
| Next by Thread: | Re: [PATCH 12/14] xfsprogs: make fsr use mntinfo when there is no mntent, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |