]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: clean up xlog_write_adv_cnt
authorChristoph Hellwig <hch@infradead.org>
Tue, 23 Mar 2010 00:47:38 +0000 (11:47 +1100)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:10 +0000 (09:58 -0500)
commit066fa93c9099f9b01ee6ca8698b5985f13417790
tree69485365ff6b9f22a56bcfc4814b27b45622d6e9
parent53c9721d9c8f6c5718e0ff1dced77e73acb4e384
xfs: clean up xlog_write_adv_cnt

Replace the awkward xlog_write_adv_cnt with an inline helper that makes
it more obvious that it's modifying it's paramters, and replace the use
of an integer type for "ptr" with a real void pointer.  Also move
xlog_write_adv_cnt to xfs_log_priv.h as it will be used outside of
xfs_log.c in the delayed logging series.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h