]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: split and cleanup xfs_log_reserve
authorChristoph Hellwig <hch@infradead.org>
Mon, 20 Feb 2012 02:31:31 +0000 (02:31 +0000)
committerBen Myers <bpm@sgi.com>
Thu, 23 Feb 2012 04:37:04 +0000 (22:37 -0600)
commit46856c5987c8e2fde4f74e2afa2c177c87a2e3d5
tree36b37fe3df405a57e8ede3d2a40ea6c307f40ae9
parent4d4ea7a6115f4a4a40170f94015ebb998ed3c807
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>
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_trace.h
fs/xfs/xfs_trans.c