Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1460561 > unrolled thread
| Started by | Christoph Hellwig <hch@lst.de> |
|---|---|
| First post | 2016-08-11 16:20 +0200 |
| Last post | 2016-08-11 16:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page Christoph Hellwig <hch@lst.de> - 2016-08-11 16:20 +0200
| From | Christoph Hellwig <hch@lst.de> |
|---|---|
| Date | 2016-08-11 16:20 +0200 |
| Subject | Re: [PATCH v5 1/2] Use kmap_atomic when rewriting attached page |
| Message-ID | <s4YZX-4Uf-19@gated-at.bofh.it> |
> +static unsigned int ata_format_dsm_trim_descr(struct scatterlist *sg, u32 num,
> + u64 sector, u32 count)
> +{
> + void *ptr = kmap_atomic(sg_page(sg));
Please use sg_copy_from_buffer to be safe against all corner cases.
Back to top | Article view | linux.kernel
csiph-web