Skip to content

Commit a3baca5

Browse files
konisakpm00
authored andcommitted
nilfs2: convert metadata file common code to use kmap_local
In the common code of metadata files, the new block creation routine nilfs_mdt_insert_new_block() still uses the deprecated kmap_atomic(), so convert it to use kmap_local. Link: https://lkml.kernel.org/r/20240122140202.6950-5-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 92e0a2b commit a3baca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nilfs2/mdt.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ nilfs_mdt_insert_new_block(struct inode *inode, unsigned long block,
4747

4848
set_buffer_mapped(bh);
4949

50-
kaddr = kmap_atomic(bh->b_page);
50+
kaddr = kmap_local_page(bh->b_page);
5151
memset(kaddr + bh_offset(bh), 0, i_blocksize(inode));
5252
if (init_block)
5353
init_block(inode, bh, kaddr);
5454
flush_dcache_page(bh->b_page);
55-
kunmap_atomic(kaddr);
55+
kunmap_local(kaddr);
5656

5757
set_buffer_uptodate(bh);
5858
mark_buffer_dirty(bh);

0 commit comments

Comments
 (0)