]> granicus.if.org Git - zfs/commit
bio_alloc() with __GFP_WAIT never returns NULL
authorIsaac Huang <he.huang@intel.com>
Tue, 21 Oct 2014 18:20:10 +0000 (12:20 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 19 Nov 2014 17:50:49 +0000 (12:50 -0500)
commit29b763cd2c13e355b60fa095a6f20cf8a38f8651
tree51e047ddee98086dc231fa02971310bfc441a0f6
parentaaed7c408c0bd72c6f9437793a98542972f0a8fd
bio_alloc() with __GFP_WAIT never returns NULL

Mark the error handling branch as unlikely() because the current
kernel interface can never return NULL.  However, we want to keep
the error handling in case this behavior changes in the futre.

Plus fix a small style issue.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Isaac Huang <he.huang@intel.com>
Closes #2703
module/zfs/vdev_disk.c