Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2022 07:00:58 GMT
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3dd649789469 - stable/13 - Increase the maximum size of the journaled soft-updates journal.
Message-ID:  <202212040700.2B470was082548@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=3dd649789469a829bd44426d727da621d7a7b52c

commit 3dd649789469a829bd44426d727da621d7a7b52c
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-10-21 18:00:00 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-12-04 06:55:49 +0000

    Increase the maximum size of the journaled soft-updates journal.
    
    (cherry picked from commit 243a0eda9ace2f4d9cdd5291c352816ddc9ebdb2)
    
    Sponsored by: The FreeBSD Foundation
---
 sbin/tunefs/tunefs.c | 1 -
 sys/ufs/ffs/fs.h     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index 2eca8e0a3e36..3e0e609c2b2c 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -974,7 +974,6 @@ journal_alloc(int64_t size)
 	 */
 	if (size == 0) {
 		size = (sblock.fs_size * sblock.fs_bsize) / 1024;
-		size = MIN(SUJ_MAX, size);
 		if (size / sblock.fs_fsize > sblock.fs_fpg)
 			size = sblock.fs_fpg * sblock.fs_fsize;
 		size = MAX(SUJ_MIN, size);
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h
index df003c4282d9..8069b2db54bd 100644
--- a/sys/ufs/ffs/fs.h
+++ b/sys/ufs/ffs/fs.h
@@ -767,7 +767,6 @@ lbn_offset(struct fs *fs, int level)
 #define	JREC_SIZE	32	/* Record and segment header size. */
 
 #define	SUJ_MIN		(4 * 1024 * 1024)	/* Minimum journal size */
-#define	SUJ_MAX		(32 * 1024 * 1024)	/* Maximum journal size */
 #define	SUJ_FILE	".sujournal"		/* Journal file name */
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212040700.2B470was082548>