ext4, jbd2: Provide accessor function for handle credits
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:17 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:48 +0000 (16:00 -0500)
commita9a8344ee1714f835ba394077e8c13d751e2f148
treee1c8c2ca02986fb433198e68a89137339be74e99
parenta413036791d040e33badcc634453a4d0c0705499
ext4, jbd2: Provide accessor function for handle credits

Provide accessor function to get number of credits available in a handle
and use it from ext4. Later, computation of available credits won't be
so straightforward.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-11-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4_jbd2.c
fs/ext4/ext4_jbd2.h
fs/ext4/xattr.c
include/linux/jbd2.h