> That seems way more complicated. I'd much rather go with something > like may patch plus maybe a big fat comment explaining that persisting > the size update is the file systems job. Note that a lot of the modern > file systems don't use the VFS inode tracking for that, besides XFS > that includes at least btrfs and ocfs2 as well. I'd suggest something like this as the baseline: http://git.infradead.org/users/hch/xfs.git/shortlog/refs/heads/iomap-i_size