.. | .. |
---|
120 | 120 | }; |
---|
121 | 121 | |
---|
122 | 122 | /* |
---|
| 123 | + * Used to record a portion of a cluster found at the beginning or end |
---|
| 124 | + * of an extent while traversing the extent tree during space removal. |
---|
| 125 | + * A partial cluster may be removed if it does not contain blocks shared |
---|
| 126 | + * with extents that aren't being deleted (tofree state). Otherwise, |
---|
| 127 | + * it cannot be removed (nofree state). |
---|
| 128 | + */ |
---|
| 129 | +struct partial_cluster { |
---|
| 130 | + ext4_fsblk_t pclu; /* physical cluster number */ |
---|
| 131 | + ext4_lblk_t lblk; /* logical block number within logical cluster */ |
---|
| 132 | + enum {initial, tofree, nofree} state; |
---|
| 133 | +}; |
---|
| 134 | + |
---|
| 135 | +/* |
---|
123 | 136 | * structure for external API |
---|
124 | 137 | */ |
---|
125 | 138 | |
---|
.. | .. |
---|
256 | 269 | ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & |
---|
257 | 270 | 0xffff); |
---|
258 | 271 | } |
---|
259 | | - |
---|
260 | | -#define ext4_ext_dirty(handle, inode, path) \ |
---|
261 | | - __ext4_ext_dirty(__func__, __LINE__, (handle), (inode), (path)) |
---|
262 | | -int __ext4_ext_dirty(const char *where, unsigned int line, handle_t *handle, |
---|
263 | | - struct inode *inode, struct ext4_ext_path *path); |
---|
264 | 272 | |
---|
265 | 273 | #endif /* _EXT4_EXTENTS */ |
---|
266 | 274 | |
---|