HomeFreeBSD

bio_alloc() with __GFP_WAIT never returns NULL

Description

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

Details

Provenance
Isaac Huang <he.huang@intel.com>Authored on Oct 21 2014, 6:20 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 19 2014, 5:50 PM
Parents
rGaaed7c408c0b: Explicitly include SPL compat headers
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG29b763cd2c13: bio_alloc() with __GFP_WAIT never returns NULL (authored by Isaac Huang <he.huang@intel.com>).Nov 19 2014, 5:50 PM