diff options
author | Niv Sardi | 2008-08-13 08:05:49 +0200 |
---|---|---|
committer | Lachlan McIlroy | 2008-08-13 08:05:49 +0200 |
commit | 322ff6b8cd54feb1c4c0426630f3642ab1dd2176 (patch) | |
tree | 76ea7d8cee4a30eb60cbe4a27a1efccf149bcc91 /fs/xfs/xfs_trans.h | |
parent | [XFS] don't leak m_fsname/m_rtname/m_logname (diff) | |
download | kernel-qcow2-linux-322ff6b8cd54feb1c4c0426630f3642ab1dd2176.tar.gz kernel-qcow2-linux-322ff6b8cd54feb1c4c0426630f3642ab1dd2176.tar.xz kernel-qcow2-linux-322ff6b8cd54feb1c4c0426630f3642ab1dd2176.zip |
[XFS] Move xfs_attr_rolltrans to xfs_trans_roll
Move it from the attr code to the transaction code and make
the attr code call the new function.
We rolltrans is really usefull whenever we want to use rolling
transaction, should be generic, it isn't dependent on any part
of the attr code anyway.
We use this excuse to change all the:
if ((error = xfs_attr_rolltrans()))
calls into:
error = xfs_trans_roll();
if (error)
SGI-PV: 981498
SGI-Modid: xfs-linux-melb:xfs-kern:31729a
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans.h')
-rw-r--r-- | fs/xfs/xfs_trans.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h index 0804207c7391..9161e998f1a6 100644 --- a/fs/xfs/xfs_trans.h +++ b/fs/xfs/xfs_trans.h @@ -986,6 +986,7 @@ int _xfs_trans_commit(xfs_trans_t *, int *); #define xfs_trans_commit(tp, flags) _xfs_trans_commit(tp, flags, NULL) void xfs_trans_cancel(xfs_trans_t *, int); +int xfs_trans_roll(struct xfs_trans **, struct xfs_inode *); int xfs_trans_ail_init(struct xfs_mount *); void xfs_trans_ail_destroy(struct xfs_mount *); void xfs_trans_push_ail(struct xfs_mount *, xfs_lsn_t); |