| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 9/9] xfs: check xfs_buf_read_uncached returns correctly |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Fri, 15 Aug 2014 05:56:08 -0700 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1408084747-4540-10-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1408084747-4540-1-git-send-email-david@xxxxxxxxxxxxx> <1408084747-4540-10-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
On Fri, Aug 15, 2014 at 04:39:07PM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > xfs_buf_read_uncached() has two failure modes. If can either return > NULL or bp->b_error != 0 depending on the type of failure, and not > all callers check for both. Fix it up. I'd rather get rid of these annoying calling conventions. Make it return and errno, and the bp in a pointer argument, with the bp never non-NULL in case of error. |
| Previous by Date: | [PATCH 8/9] xfs: introduce xfs_buf_submit[_wait], Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 8/9] xfs: introduce xfs_buf_submit[_wait], Christoph Hellwig |
| Previous by Thread: | [PATCH 9/9] xfs: check xfs_buf_read_uncached returns correctly, Dave Chinner |
| Next by Thread: | Re: [PATCH 9/9] xfs: check xfs_buf_read_uncached returns correctly, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |