ext4: mballoc: refactor ext4_mb_discard_preallocations()
authorRitesh Harjani <riteshh@linux.ibm.com>
Wed, 20 May 2020 06:40:33 +0000 (12:10 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Jun 2020 03:16:53 +0000 (23:16 -0400)
commitcf5e2ca6c99077d128e971149f0c262e808ca831
tree2660554c1010d3fb9af7bbd6bc66bcfe8e86f397
parent53f86b170dfa8d50b8b3fb1c5cf17c33b2327db2
ext4: mballoc: refactor ext4_mb_discard_preallocations()

Implement ext4_mb_discard_preallocations_should_retry()
which we will need in later patches to add more logic
like check for sequence number match to see if we should
retry for block allocation or not.

There should be no functionality change in this patch.

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/1cfae0098d2aa9afbeb59331401258182868c8f2.1589955723.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c