Skip to content
Commit 0aa06000 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: teach ext4_ext_truncate() about the bigalloc feature



When we are truncating (as opposed unlinking) a file, we need to worry
about partial truncates of a file, especially in the light of sparse
files.  The changes here make sure that arbitrary truncates of sparse
files works correctly.  Yeah, it's messy.

Note that these functions will need to be revisted when the punch
ioctl is integrated --- in fact this commit will probably have merge
conflicts with the punch changes which Allison Henders and the IBM LTC
have been working on.  I will need to fix this up when either patch
hits mainline.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 4d33b1ef
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment