| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/8] xfs: ensure sync write errors are returned |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Fri, 7 Jan 2011 03:45:18 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1294116518-14908-2-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1294116518-14908-1-git-send-email-david@xxxxxxxxxxxxx> <1294116518-14908-2-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
> + if (ret == -ENOSPC && !enospc) {
> + ssize_t ret2 = xfs_flush_pages(ip, 0, -1, 0, FI_NONE);
> + if (ret2) {
> + ret = ret2;
> goto out_unlock_internal;
> + }
> enospc = 1;
> goto write_retry;
> }
I don't think there is any reason for the ret2 variale here. If it's
non-zero we assign it to ret, and if it's zero we overwrite it again
after jumping to the write_retry label.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Undeliverable mail: Message could not be delivered, MAILER-DAEMON |
|---|---|
| Next by Date: | Re: [PATCH 7/8] xfs: factor common write setup code, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 1/8] xfs: ensure sync write errors are returned, Alex Elder |
| Next by Thread: | Re: [PATCH 1/8] xfs: ensure sync write errors are returned, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |