|
@@ -258,6 +258,17 @@ handle_t *ocfs2_start_trans(struct ocfs2_super *osb,
|
|
int ocfs2_commit_trans(struct ocfs2_super *osb,
|
|
int ocfs2_commit_trans(struct ocfs2_super *osb,
|
|
handle_t *handle);
|
|
handle_t *handle);
|
|
int ocfs2_extend_trans(handle_t *handle, int nblocks);
|
|
int ocfs2_extend_trans(handle_t *handle, int nblocks);
|
|
|
|
+int ocfs2_allocate_extend_trans(handle_t *handle,
|
|
|
|
+ int thresh);
|
|
|
|
+
|
|
|
|
+/*
|
|
|
|
+ * Define an arbitrary limit for the amount of data we will anticipate
|
|
|
|
+ * writing to any given transaction. For unbounded transactions such as
|
|
|
|
+ * fallocate(2) we can write more than this, but we always
|
|
|
|
+ * start off at the maximum transaction size and grow the transaction
|
|
|
|
+ * optimistically as we go.
|
|
|
|
+ */
|
|
|
|
+#define OCFS2_MAX_TRANS_DATA 64U
|
|
|
|
|
|
/*
|
|
/*
|
|
* Create access is for when we get a newly created buffer and we're
|
|
* Create access is for when we get a newly created buffer and we're
|