diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-02-19 21:31:31 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-02-22 23:37:04 -0500 |
commit | 9006fb91cfdf22812923f0536c7531c429c1aeab (patch) | |
tree | 36b37fe3df405a57e8ede3d2a40ea6c307f40ae9 /fs/xfs/xfs_log_priv.h | |
parent | 42ceedb3caffe67c4ec0dfbb78ce410832d429b9 (diff) |
xfs: split and cleanup xfs_log_reserve
Split the log regrant case out of xfs_log_reserve into a separate function,
and merge xlog_grant_log_space and xlog_regrant_write_log_space into their
respective callers. Also replace the XFS_LOG_PERM_RESERV flag, which easily
got misused before the previous cleanups with a simple boolean parameter.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r-- | fs/xfs/xfs_log_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index eba4ec925a45..2152900b79d4 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h | |||
@@ -552,7 +552,7 @@ extern void xlog_pack_data(xlog_t *log, xlog_in_core_t *iclog, int); | |||
552 | 552 | ||
553 | extern kmem_zone_t *xfs_log_ticket_zone; | 553 | extern kmem_zone_t *xfs_log_ticket_zone; |
554 | struct xlog_ticket *xlog_ticket_alloc(struct log *log, int unit_bytes, | 554 | struct xlog_ticket *xlog_ticket_alloc(struct log *log, int unit_bytes, |
555 | int count, char client, uint xflags, | 555 | int count, char client, bool permanent, |
556 | int alloc_flags); | 556 | int alloc_flags); |
557 | 557 | ||
558 | 558 | ||