fuse: use kmap_local_page()
authorPeng Hao <flyingpeng@tencent.com>
Wed, 8 Sep 2021 08:38:28 +0000 (16:38 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:01 +0000 (17:03 +0200)
commit5fe0fc9f1de63de748b87f121c038d39192a271d
treeb9553fb2b3a09efa7044b1f667ef3c7c4f28d445
parentbda9a71980e083699a0360963c0135657b73f47a
fuse: use kmap_local_page()

Due to the introduction of kmap_local_*, the storage of slots used for
short-term mapping has changed from per-CPU to per-thread.  kmap_atomic()
disable preemption, while kmap_local_*() only disable migration.

There is no need to disable preemption in several kamp_atomic places used
in fuse.

Link: https://lwn.net/Articles/836144/
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/ioctl.c
fs/fuse/readdir.c