jbd2: rename j_maxlen to j_total_len and add jbd2_journal_max_txn_bufs
Harshad Shirwadkar authored
The on-disk superblock field sb->s_maxlen represents the total size of
the journal including the fast commit area and is no more the max
number of blocks available for a transaction. The maximum number of
blocks available to a transaction is reduced by the number of fast
commit blocks. So, this patch renames j_maxlen to j_total_len to
better represent its intent. Also, it adds a function to calculate max
number of bufs available for a transaction.
Suggested-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201106035911.1942128-6-harshadshirwadkar@gmail.com

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
ede7dc7f
Name Last commit Last update
..
cluster ocfs2: cleanup o2hb_region_dev_store
dlm ocfs2: add missing annotation for dlm_empty_lockres()
dlmfs dlmfs: clean up dlmfs_file_{read,write}() a bit
Kconfig ocfs2: replace HTTP links with HTTPS ones
Makefile ocfs2: improve ocfs2 Makefile
acl.c ocfs2: fix remounting needed after setfacl command
acl.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174
alloc.c ocfs2: fix potential soft lockup during fstrim
alloc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
aops.c fs: convert mpage_readpages to mpage_readahead
aops.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
blockcheck.c ocfs2: replace HTTP links with HTTPS ones
blockcheck.h ocfs: no need to check return value of debugfs_create functions
buffer_head_io.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
buffer_head_io.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
dcache.c fs/ocfs2: fix race in ocfs2_dentry_attach_lock()
dcache.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
dir.c treewide: Remove uninitialized_var() usage
dir.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
dlmglue.c ocfs2: fix unbalanced locking
dlmglue.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
export.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
export.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145
extent_map.c treewide: Remove uninitialized_var() usage
extent_map.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 405
file.c
file.h
filecheck.c
filecheck.h
heartbeat.c
heartbeat.h
inode.c
inode.h
ioctl.c
ioctl.h
journal.c
journal.h
localalloc.c
localalloc.h
locks.c
locks.h
mmap.c
mmap.h
move_extents.c
move_extents.h
namei.c
namei.h
ocfs1_fs_compat.h
ocfs2.h
ocfs2_fs.h
ocfs2_ioctl.h
ocfs2_lockid.h
ocfs2_lockingver.h
ocfs2_trace.h
quota.h
quota_global.c
quota_local.c
refcounttree.c
refcounttree.h
reservations.c
reservations.h
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c
stackglue.h
suballoc.c
suballoc.h
super.c
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
xattr.c
xattr.h