This matches the logic of ext4. I think it's more correct passing (offset + len) to inode_newsize_ok() rather than rounding up to block size. The call can be skipped in some cases too. It works for me but I'm new to this code so I might miss something. Let me know what you think.
Davide Italiano (1): Btrfs: Improve FL_KEEP_SIZE handling in fallocate. fs/btrfs/file.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html