]> git.baikalelectronics.ru Git - kernel.git/commit
affs_do_readpage_ofs(): just use kmap_atomic() around memcpy()
authorAl Viro <viro@ZenIV.linux.org.uk>
Tue, 2 Feb 2016 02:28:05 +0000 (02:28 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Feb 2016 05:15:51 +0000 (00:15 -0500)
commite3a8c1a0312155a87ade45a123ba327c9eaa7950
tree2781e7f0e0448d30efd5e50fd7ea4a3c6d4f19dc
parentf372ab43903250a6828ac68aa84e4bd3661b2d99
affs_do_readpage_ofs(): just use kmap_atomic() around memcpy()

It forgets kunmap() on a failure exit, but there's really no point keeping
the page kmapped at all - after all, what we are doing is a bunch of memcpy()
into the parts of page, so kmap_atomic()/kunmap_atomic() just around those
memcpy() is enough.

Spotted-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/affs/file.c