| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/8] xfs: remove xfs_cancel_ioend |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Wed, 10 Feb 2016 03:28:00 -0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1455094043-9694-3-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1455094043-9694-1-git-send-email-david@xxxxxxxxxxxxx> <1455094043-9694-3-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.24 (2015-08-30) |
> +static int
> +xfs_writepage_submit(
> + struct xfs_ioend *ioend,
> + struct xfs_ioend *iohead,
> + struct writeback_control *wbc,
> + int status)
> +{
> + struct blk_plug plug;
> +
> + /* Reserve log space if we might write beyond the on-disk inode size. */
> + if (!status && ioend && ioend->io_type != XFS_IO_UNWRITTEN &&
> + xfs_ioend_is_append(ioend))
> + status = xfs_setfilesize_trans_alloc(ioend);
> +
> + if (iohead) {
> + blk_start_plug(&plug);
> + xfs_submit_ioend(wbc, iohead, status);
> + blk_finish_plug(&plug);
> + }
> + return status;
> +}
We return the xfs_setfilesize_trans_alloc failure status here,
but none of the callers pick it up. The way this is handled later
changes a bit, but even at the end of the series only 1 of the
three callers handles the error.
|
| Previous by Date: | xfs_nondir_ilock_class lockdep warning, Tetsuo Handa |
|---|---|
| Next by Date: | Re: [PATCH 3/8] xfs: Introduce writeback context for writepages, Christoph Hellwig |
| Previous by Thread: | [PATCH 2/8] xfs: remove xfs_cancel_ioend, Dave Chinner |
| Next by Thread: | Re: [PATCH 2/8] xfs: remove xfs_cancel_ioend, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |