ext4: add discard/zeroout flags to journal flush
authorLeah Rumancik <leah.rumancik@gmail.com>
Tue, 18 May 2021 15:13:25 +0000 (15:13 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 22 Jun 2021 23:27:10 +0000 (19:27 -0400)
commit01d5d96542fd4e383da79593f8a3450995ce2257
treecc7fc418d36a2cda0f939cc19a499c8d2bce953e
parent8f6840c4fd1e7bd715e403074fb161c1a04cda73
ext4: add discard/zeroout flags to journal flush

Add a flags argument to jbd2_journal_flush to enable discarding or
zero-filling the journal blocks while flushing the journal.

Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Link: https://lore.kernel.org/r/20210518151327.130198-1-leah.rumancik@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/super.c
fs/jbd2/journal.c
fs/ocfs2/alloc.c
fs/ocfs2/journal.c
include/linux/jbd2.h