extents.c (4209ae12b12265d475bba28634184423149bd14f) | extents.c (b60ca3343e78761c6ebe6ff52c628893c8297b73) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 4 * Written by Alex Tomas <alex@clusterfs.com> 5 * 6 * Architecture independence: 7 * Copyright (c) 2005, Bull S.A. 8 * Written by Pierre Peiffer <pierre.peiffer@bull.net> --- 3229 unchanged lines hidden (view full) --- 3238 goto fix_extent_len; 3239 3240out: 3241 ext4_ext_show_leaf(inode, path); 3242 return err; 3243 3244fix_extent_len: 3245 ex->ee_len = orig_ex.ee_len; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 4 * Written by Alex Tomas <alex@clusterfs.com> 5 * 6 * Architecture independence: 7 * Copyright (c) 2005, Bull S.A. 8 * Written by Pierre Peiffer <pierre.peiffer@bull.net> --- 3229 unchanged lines hidden (view full) --- 3238 goto fix_extent_len; 3239 3240out: 3241 ext4_ext_show_leaf(inode, path); 3242 return err; 3243 3244fix_extent_len: 3245 ex->ee_len = orig_ex.ee_len; |
3246 /* 3247 * Ignore ext4_ext_dirty return value since we are already in error path 3248 * and err is a non-zero error code. 3249 */ |
|
3246 ext4_ext_dirty(handle, inode, path + path->p_depth); 3247 return err; 3248} 3249 3250/* 3251 * ext4_split_extents() splits an extent and mark extent which is covered 3252 * by @map as split_flags indicates 3253 * --- 243 unchanged lines hidden (view full) --- 3497 abut_ex->ee_len = cpu_to_le16(next_len + map_len); 3498 3499 /* Result: number of initialized blocks past m_lblk */ 3500 allocated = map_len; 3501 } 3502 } 3503 if (allocated) { 3504 /* Mark the block containing both extents as dirty */ | 3250 ext4_ext_dirty(handle, inode, path + path->p_depth); 3251 return err; 3252} 3253 3254/* 3255 * ext4_split_extents() splits an extent and mark extent which is covered 3256 * by @map as split_flags indicates 3257 * --- 243 unchanged lines hidden (view full) --- 3501 abut_ex->ee_len = cpu_to_le16(next_len + map_len); 3502 3503 /* Result: number of initialized blocks past m_lblk */ 3504 allocated = map_len; 3505 } 3506 } 3507 if (allocated) { 3508 /* Mark the block containing both extents as dirty */ |
3505 ext4_ext_dirty(handle, inode, path + depth); | 3509 err = ext4_ext_dirty(handle, inode, path + depth); |
3506 3507 /* Update path to point to the right extent */ 3508 path[depth].p_ext = abut_ex; 3509 goto out; 3510 } else 3511 allocated = ee_len - (map->m_lblk - ee_block); 3512 3513 WARN_ON(map->m_lblk < ee_block); --- 2224 unchanged lines hidden --- | 3510 3511 /* Update path to point to the right extent */ 3512 path[depth].p_ext = abut_ex; 3513 goto out; 3514 } else 3515 allocated = ee_len - (map->m_lblk - ee_block); 3516 3517 WARN_ON(map->m_lblk < ee_block); --- 2224 unchanged lines hidden --- |