move_extent.c (8f50c8b7ffc727643693f33657a857aeeefbd80b) | move_extent.c (b7446e7cf15f0926866c8e5de90ab278998bf8c8) |
---|---|
1// SPDX-License-Identifier: LGPL-2.1 2/* 3 * Copyright (c) 2008,2009 NEC Software Tohoku, Ltd. 4 * Written by Takashi Sato <t-sato@yk.jp.nec.com> 5 * Akira Fujita <a-fujita@rs.jp.nec.com> 6 */ 7 8#include <linux/fs.h> --- 127 unchanged lines hidden (view full) --- 136 mapping[1] = inode2->i_mapping; 137 } else { 138 swap(index1, index2); 139 mapping[0] = inode2->i_mapping; 140 mapping[1] = inode1->i_mapping; 141 } 142 143 flags = memalloc_nofs_save(); | 1// SPDX-License-Identifier: LGPL-2.1 2/* 3 * Copyright (c) 2008,2009 NEC Software Tohoku, Ltd. 4 * Written by Takashi Sato <t-sato@yk.jp.nec.com> 5 * Akira Fujita <a-fujita@rs.jp.nec.com> 6 */ 7 8#include <linux/fs.h> --- 127 unchanged lines hidden (view full) --- 136 mapping[1] = inode2->i_mapping; 137 } else { 138 swap(index1, index2); 139 mapping[0] = inode2->i_mapping; 140 mapping[1] = inode1->i_mapping; 141 } 142 143 flags = memalloc_nofs_save(); |
144 page[0] = grab_cache_page_write_begin(mapping[0], index1, 0); | 144 page[0] = grab_cache_page_write_begin(mapping[0], index1); |
145 if (!page[0]) { 146 memalloc_nofs_restore(flags); 147 return -ENOMEM; 148 } 149 | 145 if (!page[0]) { 146 memalloc_nofs_restore(flags); 147 return -ENOMEM; 148 } 149 |
150 page[1] = grab_cache_page_write_begin(mapping[1], index2, 0); | 150 page[1] = grab_cache_page_write_begin(mapping[1], index2); |
151 memalloc_nofs_restore(flags); 152 if (!page[1]) { 153 unlock_page(page[0]); 154 put_page(page[0]); 155 return -ENOMEM; 156 } 157 /* 158 * grab_cache_page_write_begin() may not wait on page's writeback if --- 545 unchanged lines hidden --- | 151 memalloc_nofs_restore(flags); 152 if (!page[1]) { 153 unlock_page(page[0]); 154 put_page(page[0]); 155 return -ENOMEM; 156 } 157 /* 158 * grab_cache_page_write_begin() may not wait on page's writeback if --- 545 unchanged lines hidden --- |