diff options
author | 2024-01-22 23:01:57 +0900 | |
---|---|---|
committer | 2024-02-22 15:38:53 -0800 | |
commit | 7282f2ae8105878a0cc9a2b042f2d6550bf76fc4 (patch) | |
tree | d8172050438ef6eaadcd572a0b0f054ea99e57ee /fs/nilfs2/ifile.h | |
parent | nilfs2: do not acquire rwsem in nilfs_bmap_write() (diff) | |
download | linux-7282f2ae8105878a0cc9a2b042f2d6550bf76fc4.tar.gz linux-7282f2ae8105878a0cc9a2b042f2d6550bf76fc4.tar.bz2 linux-7282f2ae8105878a0cc9a2b042f2d6550bf76fc4.zip |
nilfs2: convert ifile to use kmap_local
Convert deprecated kmap() and kmap_atomic() to use kmap_local for the
ifile metadata file used to manage disk inodes.
In some usages, calls to kmap_local and kunmap_local are split into
different helpers, but those usages can be safely changed to local thread
kmap.
Link: https://lkml.kernel.org/r/20240122140202.6950-11-konishi.ryusuke@gmail.com
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/ifile.h')
-rw-r--r-- | fs/nilfs2/ifile.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nilfs2/ifile.h b/fs/nilfs2/ifile.h index 35c5273f4821..b71ab0a81dc4 100644 --- a/fs/nilfs2/ifile.h +++ b/fs/nilfs2/ifile.h @@ -21,15 +21,14 @@ static inline struct nilfs_inode * nilfs_ifile_map_inode(struct inode *ifile, ino_t ino, struct buffer_head *ibh) { - void *kaddr = kmap(ibh->b_page); + void *kaddr = kmap_local_page(ibh->b_page); return nilfs_palloc_block_get_entry(ifile, ino, ibh, kaddr); } -static inline void nilfs_ifile_unmap_inode(struct inode *ifile, ino_t ino, - struct buffer_head *ibh) +static inline void nilfs_ifile_unmap_inode(struct nilfs_inode *raw_inode) { - kunmap(ibh->b_page); + kunmap_local(raw_inode); } int nilfs_ifile_create_inode(struct inode *, ino_t *, struct buffer_head **); |