]> www.infradead.org Git - users/willy/pagecache.git/commit
ocfs2: use memcpy_to_folio() in ocfs2_symlink_get_block()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 13 Feb 2025 21:45:30 +0000 (21:45 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 14 Mar 2025 22:56:02 +0000 (15:56 -0700)
commit18a38d3acbaf3f84740d58c9ce894c3aa2185f63
treea6d512a16e4027f6e6f5792674ac6ddbac55c2ad
parent28331a6f84237decedc3789c1feae965bd693bcb
ocfs2: use memcpy_to_folio() in ocfs2_symlink_get_block()

Replace use of kmap_atomic() with the higher-level construct
memcpy_to_folio().  This removes a use of b_page and supports large folios
as well as being easier to understand.  It also removes the check for
kmap_atomic() failing (because it can't).

Link: https://lkml.kernel.org/r/20250213214533.2242224-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Tinguely <mark.tinguely@oracle.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/aops.c