From: Mark Fasheh <mfasheh@suse.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: fix ocfs2_page_mkwrite path
Date: Mon, 24 Jan 2011 16:36:41 -0800 [thread overview]
Message-ID: <20110125003641.GL9240@wotan.suse.de> (raw)
In-Reply-To: <20110124235923.GC24732@noexit>
On Mon, Jan 24, 2011 at 03:59:24PM -0800, Joel Becker wrote:
> On Mon, Jan 24, 2011 at 03:54:25PM -0800, Mark Fasheh wrote:
> > And instead I'd rather see:
> >
> > ret = ocfs2_grab_pages_for_write(mapping, wc, wc->w_cpos, pos, len,
> > cluster_of_pages, mmap_page);
> > if (ret) {
> > if (ret == -EWHATEVER) {
>
> Ok, so what is EWHATEVER?
-EINVAL? That's what we used to return from ocfs2_grab_pages_for_write().
The only other possible return value right now is ENOMEM so we could pick
anything really.
errno values aren't very descriptive, which sucks (but that's what we have
to deal with).
Then again, if we want to be super explicit we could also just do:
#define EMAPPINGCHANGED 1
int ocfs2_grab_pages_for_write( ... )
{
}
and return our own nonzero value.
--Mark
--
Mark Fasheh
prev parent reply other threads:[~2011-01-25 0:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 11:01 [Ocfs2-devel] [PATCH] ocfs2: fix ocfs2_page_mkwrite path Wengang Wang
2011-01-24 23:18 ` Mark Fasheh
2011-01-24 23:28 ` Joel Becker
2011-01-24 23:54 ` Mark Fasheh
2011-01-24 23:59 ` Joel Becker
2011-01-25 0:36 ` Mark Fasheh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110125003641.GL9240@wotan.suse.de \
--to=mfasheh@suse.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.