diff for duplicates of <1488847656.3125.10.camel@sandisk.com> diff --git a/a/1.txt b/N1/1.txt index 266fd12..6c0a08c 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,13 +1,13 @@ On Sat, 2017-03-04 at 17:01 +0100, Paolo Valente wrote: > +static sector_t get_sdist(sector_t last_pos, struct request *rq) > +{ -> + sector_t sdist =3D 0; +> + sector_t sdist = 0; > + > + if (last_pos) { > + if (last_pos < blk_rq_pos(rq)) -> + sdist =3D blk_rq_pos(rq) - last_pos; +> + sdist = blk_rq_pos(rq) - last_pos; > + else -> + sdist =3D last_pos - blk_rq_pos(rq); +> + sdist = last_pos - blk_rq_pos(rq); > + } > + > + return sdist; @@ -17,4 +17,4 @@ Have you considered to use abs() from <linux/kernel.h>? Thanks, -Bart.= +Bart. diff --git a/a/content_digest b/N1/content_digest index 94a733c..60f3ac9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -18,13 +18,13 @@ "On Sat, 2017-03-04 at 17:01 +0100, Paolo Valente wrote:\n" "> +static sector_t get_sdist(sector_t last_pos, struct request *rq)\n" "> +{\n" - "> +\tsector_t sdist =3D 0;\n" + "> +\tsector_t sdist = 0;\n" "> +\n" "> +\tif (last_pos) {\n" "> +\t\tif (last_pos < blk_rq_pos(rq))\n" - "> +\t\t\tsdist =3D blk_rq_pos(rq) - last_pos;\n" + "> +\t\t\tsdist = blk_rq_pos(rq) - last_pos;\n" "> +\t\telse\n" - "> +\t\t\tsdist =3D last_pos - blk_rq_pos(rq);\n" + "> +\t\t\tsdist = last_pos - blk_rq_pos(rq);\n" "> +\t}\n" "> +\n" "> +\treturn sdist;\n" @@ -34,6 +34,6 @@ "\n" "Thanks,\n" "\n" - Bart.= + Bart. -9b6bd62fded0c185aedbcf0813eb456a5de76d31b7ef861c18f4ed1f3de707fb +44703e8e84a453681a5321500d647ca4fea99aac43804d9cc92196324685bd73
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.