extents.c (011278485ecc3cd2a3954b5d4c73101d919bf1fa) | extents.c (53085fac02d12fcd29a9cb074ec480ff0f77ae5c) |
---|---|
1/* 2 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 3 * Written by Alex Tomas <alex@clusterfs.com> 4 * 5 * Architecture independence: 6 * Copyright (c) 2005, Bull S.A. 7 * Written by Pierre Peiffer <pierre.peiffer@bull.net> 8 * --- 3105 unchanged lines hidden (view full) --- 3114 EXTENT_STATUS_WRITTEN); 3115} 3116 3117/* FIXME!! we need to try to merge to left or right after zero-out */ 3118static int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex) 3119{ 3120 ext4_fsblk_t ee_pblock; 3121 unsigned int ee_len; | 1/* 2 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 3 * Written by Alex Tomas <alex@clusterfs.com> 4 * 5 * Architecture independence: 6 * Copyright (c) 2005, Bull S.A. 7 * Written by Pierre Peiffer <pierre.peiffer@bull.net> 8 * --- 3105 unchanged lines hidden (view full) --- 3114 EXTENT_STATUS_WRITTEN); 3115} 3116 3117/* FIXME!! we need to try to merge to left or right after zero-out */ 3118static int ext4_ext_zeroout(struct inode *inode, struct ext4_extent *ex) 3119{ 3120 ext4_fsblk_t ee_pblock; 3121 unsigned int ee_len; |
3122 int ret; | |
3123 3124 ee_len = ext4_ext_get_actual_len(ex); 3125 ee_pblock = ext4_ext_pblock(ex); | 3122 3123 ee_len = ext4_ext_get_actual_len(ex); 3124 ee_pblock = ext4_ext_pblock(ex); |
3126 3127 if (ext4_encrypted_inode(inode)) 3128 return ext4_encrypted_zeroout(inode, ex); 3129 3130 ret = sb_issue_zeroout(inode->i_sb, ee_pblock, ee_len, GFP_NOFS); 3131 if (ret > 0) 3132 ret = 0; 3133 3134 return ret; | 3125 return ext4_issue_zeroout(inode, le32_to_cpu(ex->ee_block), ee_pblock, 3126 ee_len); |
3135} 3136 3137/* 3138 * ext4_split_extent_at() splits an extent at given block. 3139 * 3140 * @handle: the journal handle 3141 * @inode: the file inode 3142 * @path: the path to the extent --- 2816 unchanged lines hidden --- | 3127} 3128 3129/* 3130 * ext4_split_extent_at() splits an extent at given block. 3131 * 3132 * @handle: the journal handle 3133 * @inode: the file inode 3134 * @path: the path to the extent --- 2816 unchanged lines hidden --- |