core.c (41cd8b70c37ace40077c8d6ec0b74b983178c192) core.c (fcae695737fca0849c18db814d9d8de05c0fd2a2)
1/*
2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 365 unchanged lines hidden (view full) ---

374 .name = "ND-PI-NOP",
375 .generate_fn = nd_pi_nop_generate_verify,
376 .verify_fn = nd_pi_nop_generate_verify,
377 .tuple_size = meta_size,
378 .tag_size = meta_size,
379 };
380 int ret;
381
1/*
2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 365 unchanged lines hidden (view full) ---

374 .name = "ND-PI-NOP",
375 .generate_fn = nd_pi_nop_generate_verify,
376 .verify_fn = nd_pi_nop_generate_verify,
377 .tuple_size = meta_size,
378 .tag_size = meta_size,
379 };
380 int ret;
381
382 if (meta_size == 0)
383 return 0;
384
382 ret = blk_integrity_register(disk, &integrity);
383 if (ret)
384 return ret;
385
386 blk_queue_max_integrity_segments(disk->queue, 1);
387
388 return 0;
389}

--- 44 unchanged lines hidden ---
385 ret = blk_integrity_register(disk, &integrity);
386 if (ret)
387 return ret;
388
389 blk_queue_max_integrity_segments(disk->queue, 1);
390
391 return 0;
392}

--- 44 unchanged lines hidden ---