提交 a301a27d 编写于 作者: M Mark Fasheh

ocfs2: make ocfs2_alloc_handle() static

This is no longer used outside of journal.c
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 daf29e9c
...@@ -110,7 +110,7 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb) ...@@ -110,7 +110,7 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb)
return status; return status;
} }
struct ocfs2_journal_handle *ocfs2_alloc_handle(struct ocfs2_super *osb) static struct ocfs2_journal_handle *ocfs2_alloc_handle(struct ocfs2_super *osb)
{ {
struct ocfs2_journal_handle *retval = NULL; struct ocfs2_journal_handle *retval = NULL;
......
...@@ -198,11 +198,6 @@ static inline void ocfs2_checkpoint_inode(struct inode *inode) ...@@ -198,11 +198,6 @@ static inline void ocfs2_checkpoint_inode(struct inode *inode)
* Transaction Handling: * Transaction Handling:
* Manage the lifetime of a transaction handle. * Manage the lifetime of a transaction handle.
* *
* ocfs2_alloc_handle - Only allocate a handle so we can start putting
* cluster locks on it. To actually change blocks,
* call ocfs2_start_trans with the handle returned
* from this function. You may call ocfs2_commit_trans
* at any time in the lifetime of a handle.
* ocfs2_start_trans - Begin a transaction. Give it an upper estimate of * ocfs2_start_trans - Begin a transaction. Give it an upper estimate of
* the number of blocks that will be changed during * the number of blocks that will be changed during
* this handle. * this handle.
...@@ -221,7 +216,6 @@ static inline void ocfs2_checkpoint_inode(struct inode *inode) ...@@ -221,7 +216,6 @@ static inline void ocfs2_checkpoint_inode(struct inode *inode)
/* You must always start_trans with a number of buffs > 0, but it's /* You must always start_trans with a number of buffs > 0, but it's
* perfectly legal to go through an entire transaction without having * perfectly legal to go through an entire transaction without having
* dirtied any buffers. */ * dirtied any buffers. */
struct ocfs2_journal_handle *ocfs2_alloc_handle(struct ocfs2_super *osb);
struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb, struct ocfs2_journal_handle *ocfs2_start_trans(struct ocfs2_super *osb,
struct ocfs2_journal_handle *handle, struct ocfs2_journal_handle *handle,
int max_buffs); int max_buffs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册