public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikanth Karthikesan <knikanth@suse.de>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/7] Document that bio_alloc with __GFP_WAIT cannot fail
Date: Wed, 15 Apr 2009 10:35:04 +0530	[thread overview]
Message-ID: <200904151035.04657.knikanth@suse.de> (raw)

Document that bio_alloc with __GFP_WAIT cannot fail.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>

---

diff --git a/fs/bio.c b/fs/bio.c
index e0c9e54..5b5dfdd 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -348,6 +348,10 @@ err:
 	return NULL;
 }
 
+/*
+ * This will not fail as long as __GFP_WAIT is specified
+ * in the gfp_mask, as mempool backing is used.
+ */
 struct bio *bio_alloc(gfp_t gfp_mask, int nr_iovecs)
 {
 	struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set);


                 reply	other threads:[~2009-04-15  5:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200904151035.04657.knikanth@suse.de \
    --to=knikanth@suse.de \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox