Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dlm: remove kmap/kunmap

The pages used in lowcomms are not highmem, so kmap is not necessary.

Cc: Christine Caulfield <ccaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>

authored by

Steven Whitehouse and committed by
David Teigland
1521848c cd8e4679

-7
-7
fs/dlm/lowcomms.c
··· 824 824 len = e->len; 825 825 offset = e->offset; 826 826 spin_unlock(&con->writequeue_lock); 827 - kmap(e->page); 828 827 829 828 /* Send the first block off the write queue */ 830 829 iov[0].iov_base = page_address(e->page)+offset; ··· 854 855 855 856 if (e->len == 0 && e->users == 0) { 856 857 list_del(&e->list); 857 - kunmap(e->page); 858 858 free_entry(e); 859 859 } 860 860 spin_unlock(&con->writequeue_lock); ··· 1202 1204 1203 1205 if (e) { 1204 1206 got_one: 1205 - if (users == 0) 1206 - kmap(e->page); 1207 1207 *ppc = page_address(e->page) + offset; 1208 1208 return e; 1209 1209 } ··· 1230 1234 if (users) 1231 1235 goto out; 1232 1236 e->len = e->end - e->offset; 1233 - kunmap(e->page); 1234 1237 spin_unlock(&con->writequeue_lock); 1235 1238 1236 1239 if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) { ··· 1268 1273 offset = e->offset; 1269 1274 BUG_ON(len == 0 && e->users == 0); 1270 1275 spin_unlock(&con->writequeue_lock); 1271 - kmap(e->page); 1272 1276 1273 1277 ret = 0; 1274 1278 if (len) { ··· 1289 1295 1290 1296 if (e->len == 0 && e->users == 0) { 1291 1297 list_del(&e->list); 1292 - kunmap(e->page); 1293 1298 free_entry(e); 1294 1299 continue; 1295 1300 }