mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
457b1e353c
When ext4 encryption support was first added, ZERO_RANGE was disallowed,
supposedly because test failures (e.g. ext4/001) were seen when enabling
it, and at the time there wasn't enough time/interest to debug it.
However, there's actually no reason why ZERO_RANGE can't work on
encrypted files. And it fact it *does* work now. Whole blocks in the
zeroed range are converted to unwritten extents, as usual; encryption
makes no difference for that part. Partial blocks are zeroed in the
pagecache and then ->writepages() encrypts those blocks as usual.
ext4_block_zero_page_range() handles reading and decrypting the block if
needed before actually doing the pagecache write.
Also, f2fs has always supported ZERO_RANGE on encrypted files.
As far as I can tell, the reason that ext4/001 was failing in v4.1 was
actually because of one of the bugs fixed by commit
|
||
---|---|---|
.. | ||
caching | ||
cifs | ||
configfs | ||
ext4 | ||
nfs | ||
9p.txt | ||
adfs.txt | ||
affs.txt | ||
afs.txt | ||
api-summary.rst | ||
autofs-mount-control.txt | ||
autofs.rst | ||
automount-support.txt | ||
befs.txt | ||
bfs.txt | ||
btrfs.txt | ||
ceph.txt | ||
coda.txt | ||
cramfs.txt | ||
dax.txt | ||
debugfs.txt | ||
devpts.txt | ||
directory-locking.rst | ||
dlmfs.txt | ||
dnotify.txt | ||
ecryptfs.txt | ||
efivarfs.txt | ||
erofs.txt | ||
ext2.txt | ||
ext3.txt | ||
f2fs.txt | ||
fiemap.txt | ||
files.txt | ||
fscrypt.rst | ||
fsverity.rst | ||
fuse-io.txt | ||
fuse.txt | ||
gfs2-glocks.txt | ||
gfs2-uevents.txt | ||
gfs2.txt | ||
hfs.txt | ||
hfsplus.txt | ||
hpfs.txt | ||
index.rst | ||
inotify.txt | ||
isofs.txt | ||
journalling.rst | ||
locking.rst | ||
locks.txt | ||
mandatory-locking.txt | ||
mount_api.txt | ||
nilfs2.txt | ||
ntfs.txt | ||
ocfs2-online-filecheck.txt | ||
ocfs2.txt | ||
omfs.txt | ||
orangefs.txt | ||
overlayfs.rst | ||
path-lookup.rst | ||
path-lookup.txt | ||
porting.rst | ||
proc.txt | ||
qnx6.txt | ||
quota.txt | ||
ramfs-rootfs-initramfs.txt | ||
relay.txt | ||
romfs.txt | ||
seq_file.txt | ||
sharedsubtree.txt | ||
splice.rst | ||
spufs.txt | ||
squashfs.txt | ||
sysfs-pci.txt | ||
sysfs-tagging.txt | ||
sysfs.txt | ||
sysv-fs.txt | ||
tmpfs.txt | ||
ubifs-authentication.rst | ||
ubifs.txt | ||
udf.txt | ||
vfat.txt | ||
vfs.rst | ||
virtiofs.rst | ||
xfs-delayed-logging-design.txt | ||
xfs-self-describing-metadata.txt |