diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2023-06-27 01:22:54 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-07-03 23:30:47 +0300 |
commit | b0c21c6d527491276b1f7c9580bd2bf08c081add (patch) | |
tree | b8ba07acd05af729febf19f03e638d260bef5f0b /fs/gfs2/quota.c | |
parent | 58721bd46c9aaa2d890b2d61cbb8740745455aa9 (diff) | |
download | linux-b0c21c6d527491276b1f7c9580bd2bf08c081add.tar.xz |
gfs2: Convert remaining kmap_atomic calls to kmap_local_page
Replace the remaining instances of kmap_atomic() ... kunmap_atomic()
with kmap_local_page() ... kunmap_local().
In gfs2_write_buf_to_page(), we can call flush_dcache_page() after
unmapping the page.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r-- | fs/gfs2/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 386ca770ce2e..42a3f1e6b553 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -764,10 +764,10 @@ static int gfs2_write_buf_to_page(struct gfs2_inode *ip, unsigned long index, } /* Write to the page, now that we have setup the buffer(s) */ - kaddr = kmap_atomic(page); + kaddr = kmap_local_page(page); memcpy(kaddr + off, buf, bytes); + kunmap_local(kaddr); flush_dcache_page(page); - kunmap_atomic(kaddr); unlock_page(page); put_page(page); |