xfs: Add xfs_log_rlimit.c
authorJie Liu <jeff.liu@oracle.com>
Mon, 12 Aug 2013 10:50:02 +0000 (20:50 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 12 Aug 2013 22:49:38 +0000 (17:49 -0500)
commit5a96a94547fe345467c2ab2ec51cb3fade355bd9
tree938de207a0021f622782fd28a6c1c39fbe3a5d5f
parente773fc934fcbe2536dc625c2bd76234b9b9a60b6
xfs: Add xfs_log_rlimit.c

Add source files for xfs_log_rlimit.c The new file is used for log
size calculations and validation shared with userspace.

[dchinner: xfs_log_calc_max_attrsetm_res() does not modify the
tr_attrsetm reservation, just calculates the maximum. ]

[dchinner: rework loop in xfs_log_get_max_trans_res() ]

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/Makefile
fs/xfs/xfs_log_format.h
fs/xfs/xfs_log_rlimit.c [new file with mode: 0644]