]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: Refactor xfs_ticket_alloc() to extract a new helper
authorJie Liu <jeff.liu@oracle.com>
Mon, 12 Aug 2013 10:50:01 +0000 (20:50 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 12 Aug 2013 22:49:02 +0000 (17:49 -0500)
commite773fc934fcbe2536dc625c2bd76234b9b9a60b6
tree25faa59058c2c6168bc3b61392c0a356b8c3b798
parentf749278c5a45e8a80f3e3ca41d4634b84948b9d9
xfs: Refactor xfs_ticket_alloc() to extract a new helper

Refactor xlog_ticket_alloc() to extract a new helper, i.e.
xfs_log_calc_unit_res().

This helper would be used to calculate the total log reservation
size by adding extra log operation/transation headers for a new
log ticket.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_format.h