hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/fs/ext4/ext4_extents.h
....@@ -120,6 +120,19 @@
120120 };
121121
122122 /*
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
+/*
123136 * structure for external API
124137 */
125138
....@@ -256,11 +269,6 @@
256269 ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) &
257270 0xffff);
258271 }
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);
264272
265273 #endif /* _EXT4_EXTENTS */
266274