From: Dan Carpenter <dan.carpenter@oracle.com> To: Chris Mason <clm@fb.com>, Christoph Hellwig <hch@lst.de> Cc: Josef Bacik <jbacik@fb.com>, David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe <axboe@fb.com>, kernel-janitors@vger.kernel.org Subject: [PATCH] btrfs: use new block error code Date: Mon, 19 Jun 2017 13:55:37 +0300 [thread overview] Message-ID: <20170619105536.GA24075@elgon.mountain> (raw) This function is supposed to return blk_status_t error codes now but there was a stray -ENOMEM left behind. Fixes: 4e4cbee93d56 ("block: switch bios to blk_status_t") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index e536e98fe351..2c0b7b57fcd5 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -584,7 +584,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, __GFP_HIGHMEM); if (!cb->compressed_pages[pg_index]) { faili = pg_index - 1; - ret = -ENOMEM; + ret = BLK_STS_RESOURCE; goto fail2; } }
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com> To: Chris Mason <clm@fb.com>, Christoph Hellwig <hch@lst.de> Cc: Josef Bacik <jbacik@fb.com>, David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe <axboe@fb.com>, kernel-janitors@vger.kernel.org Subject: [PATCH] btrfs: use new block error code Date: Mon, 19 Jun 2017 10:55:37 +0000 [thread overview] Message-ID: <20170619105536.GA24075@elgon.mountain> (raw) This function is supposed to return blk_status_t error codes now but there was a stray -ENOMEM left behind. Fixes: 4e4cbee93d56 ("block: switch bios to blk_status_t") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index e536e98fe351..2c0b7b57fcd5 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -584,7 +584,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio, __GFP_HIGHMEM); if (!cb->compressed_pages[pg_index]) { faili = pg_index - 1; - ret = -ENOMEM; + ret = BLK_STS_RESOURCE; goto fail2; } }
next reply other threads:[~2017-06-19 10:55 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-19 10:55 Dan Carpenter [this message] 2017-06-19 10:55 ` [PATCH] btrfs: use new block error code Dan Carpenter 2017-06-20 9:11 ` Christoph Hellwig 2017-06-20 9:11 ` Christoph Hellwig 2017-06-21 13:17 ` David Sterba 2017-06-21 13:17 ` David Sterba 2017-06-21 13:48 ` Jens Axboe 2017-06-21 13:48 ` Jens Axboe
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=20170619105536.GA24075@elgon.mountain \ --to=dan.carpenter@oracle.com \ --cc=axboe@fb.com \ --cc=clm@fb.com \ --cc=dsterba@suse.com \ --cc=hch@lst.de \ --cc=jbacik@fb.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-block@vger.kernel.org \ --cc=linux-btrfs@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: linkBe 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.