]> git.ipfire.org Git - people/ms/linux.git/commit - fs/ext4/ext4.h
ext4: add helpers for checking whether quota can be enabled/is journalled
authorRoman Anufriev <dotdot@yandex-team.ru>
Thu, 22 Oct 2020 03:20:59 +0000 (06:20 +0300)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 3 Dec 2020 14:18:48 +0000 (09:18 -0500)
commitf177ee0882af031b3d7a1e66e1639a58c7932dee
treecd061475283f5b60ff134a9406403fa836905891
parentface525ecb30b3d7e35be21911a933980ab504f9
ext4: add helpers for checking whether quota can be enabled/is journalled

Right now, there are several places, where we check whether fs is
capable of enabling quota or if quota is journalled with quite long
and non-self-descriptive condition statements.

This patch wraps these statements into helpers for better readability
and easier usage.

Link: https://lore.kernel.org/r/1603336860-16153-1-git-send-email-dotdot@yandex-team.ru
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Roman Anufriev <dotdot@yandex-team.ru>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ext4_jbd2.h
fs/ext4/super.c