]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/xfs_repair.c
libxfs: conditionalize log format record size optimization
authorBrian Foster <bfoster@redhat.com>
Fri, 18 Dec 2015 01:14:39 +0000 (12:14 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 18 Dec 2015 01:14:39 +0000 (12:14 +1100)
commit571a78a7f3c6c4397f225cbaf9192da7ac49a1ec
tree316781f149078c7b87b3a5c60eeadcf8e701654e
parent20fbd4593ff20fafb777aef61cca6ad13a2d1fd7
libxfs: conditionalize log format record size optimization

The libxfs log clear mechanism includes an optimization to use the
maximum log buffer size (256k) when the log is being fully written
(i.e., cycle != 1). This behavior is always enabled as no current
callers are concerned with the size of the records written to format the
log to a given cycle.

A log format command will be added to xfs_db to facilitate testing of
the userspace log format code (among other things). This command is not
performance oriented and prefers the ability to format the log with
varying record sizes.

Update libxfs_log_clear() to use a new parameter to enable or disable
the record size optimization. Note that the flag is a no-op when the
cycle == XLOG_INIT_CYCLE (e.g., mkfs).

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
copy/xfs_copy.c
db/metadump.c
db/sb.c
include/libxfs.h
libxfs/rdwr.c
mkfs/xfs_mkfs.c
repair/phase2.c
repair/xfs_repair.c