aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-07-27 14:26:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-27 14:26:48 -0400
commit84eda28060f7e7d5f91f81f928532af13b9e44b2 (patch)
treef0b7feeca9b6a21a43f279fb3b566eef1c16584d /fs
parentb387e41e523c1aa347cff055455d0dd129357df4 (diff)
parent2164d3344693d2d4799fe91836d61f55516cbdf0 (diff)
Merge branch 'kmap_atomic' of git://github.com/congwang/linux
Pull final kmap_atomic cleanups from Cong Wang: "This should be the final round of cleanup, as the definitions of enum km_type finally get removed from the whole tree. The patches have been in linux-next for a long time." * 'kmap_atomic' of git://github.com/congwang/linux: pipe: remove KM_USER0 from comments vmalloc: remove KM_USER0 from comments feature-removal-schedule.txt: remove kmap_atomic(page, km_type) tile: remove km_type definitions um: remove km_type definitions asm-generic: remove km_type definitions avr32: remove km_type definitions frv: remove km_type definitions powerpc: remove km_type definitions arm: remove km_type definitions highmem: remove the deprecated form of kmap_atomic tile: remove usage of enum km_type frv: remove the second parameter of kmap_atomic_primary() jbd2: remove the second argument of kmap_atomic
Diffstat (limited to 'fs')
-rw-r--r--fs/jbd2/commit.c4
-rw-r--r--fs/pipe.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 216f4299f65..af5280fb579 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -349,12 +349,12 @@ static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag,
349 return; 349 return;
350 350
351 sequence = cpu_to_be32(sequence); 351 sequence = cpu_to_be32(sequence);
352 addr = kmap_atomic(page, KM_USER0); 352 addr = kmap_atomic(page);
353 csum = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&sequence, 353 csum = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&sequence,
354 sizeof(sequence)); 354 sizeof(sequence));
355 csum = jbd2_chksum(j, csum, addr + offset_in_page(bh->b_data), 355 csum = jbd2_chksum(j, csum, addr + offset_in_page(bh->b_data),
356 bh->b_size); 356 bh->b_size);
357 kunmap_atomic(addr, KM_USER0); 357 kunmap_atomic(addr);
358 358
359 tag->t_checksum = cpu_to_be32(csum); 359 tag->t_checksum = cpu_to_be32(csum);
360} 360}
diff --git a/fs/pipe.c b/fs/pipe.c
index 49c1065256f..95cbd6b227e 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -224,7 +224,7 @@ static void anon_pipe_buf_release(struct pipe_inode_info *pipe,
224 * and the caller has to be careful not to fault before calling 224 * and the caller has to be careful not to fault before calling
225 * the unmap function. 225 * the unmap function.
226 * 226 *
227 * Note that this function occupies KM_USER0 if @atomic != 0. 227 * Note that this function calls kmap_atomic() if @atomic != 0.
228 */ 228 */
229void *generic_pipe_buf_map(struct pipe_inode_info *pipe, 229void *generic_pipe_buf_map(struct pipe_inode_info *pipe,
230 struct pipe_buffer *buf, int atomic) 230 struct pipe_buffer *buf, int atomic)