diff options
author | luozhengzheng <[email protected]> | 2016-12-02 07:45:16 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-12-01 16:45:16 -0700 |
commit | ba712624d6a0df121d5dfc5440ba83cf53224916 (patch) | |
tree | 48087bc24b8300ba0fcd16af23f2f4b6b330b35a /module/zfs | |
parent | e2c7d3785ad97399478421293121d7853463a3e4 (diff) |
Fix incorrect operator in abd_alloc_sametype()
This should be & and not | so is_metadata is set correctly.
Reviewed-by: Dan Kimmel <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: luozhengzheng <[email protected]>
Closes #5438
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/abd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/abd.c b/module/zfs/abd.c index ffee9a5f8..d14564b33 100644 --- a/module/zfs/abd.c +++ b/module/zfs/abd.c @@ -695,7 +695,7 @@ abd_free(abd_t *abd) abd_t * abd_alloc_sametype(abd_t *sabd, size_t size) { - boolean_t is_metadata = (sabd->abd_flags | ABD_FLAG_META) != 0; + boolean_t is_metadata = (sabd->abd_flags & ABD_FLAG_META) != 0; if (abd_is_linear(sabd)) { return (abd_alloc_linear(size, is_metadata)); } else { |