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_trace.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_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index 482bebf8c7ef..3b369c1277f0 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h | |||
@@ -826,17 +826,14 @@ DEFINE_EVENT(xfs_loggrant_class, name, \ | |||
826 | TP_ARGS(log, tic)) | 826 | TP_ARGS(log, tic)) |
827 | DEFINE_LOGGRANT_EVENT(xfs_log_done_nonperm); | 827 | DEFINE_LOGGRANT_EVENT(xfs_log_done_nonperm); |
828 | DEFINE_LOGGRANT_EVENT(xfs_log_done_perm); | 828 | DEFINE_LOGGRANT_EVENT(xfs_log_done_perm); |
829 | DEFINE_LOGGRANT_EVENT(xfs_log_reserve); | ||
830 | DEFINE_LOGGRANT_EVENT(xfs_log_umount_write); | 829 | DEFINE_LOGGRANT_EVENT(xfs_log_umount_write); |
831 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_enter); | ||
832 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_exit); | ||
833 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_error); | ||
834 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_sleep); | 830 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_sleep); |
835 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake); | 831 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake); |
836 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake_up); | 832 | DEFINE_LOGGRANT_EVENT(xfs_log_grant_wake_up); |
837 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_enter); | 833 | DEFINE_LOGGRANT_EVENT(xfs_log_reserve); |
838 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_exit); | 834 | DEFINE_LOGGRANT_EVENT(xfs_log_reserve_exit); |
839 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_write_error); | 835 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant); |
836 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_exit); | ||
840 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_enter); | 837 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_enter); |
841 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_exit); | 838 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_exit); |
842 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_sub); | 839 | DEFINE_LOGGRANT_EVENT(xfs_log_regrant_reserve_sub); |