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