From: Miklos Szeredi Date: Wed, 17 Oct 2007 06:31:01 +0000 (-0700) Subject: fuse: truncate on spontaneous size change X-Git-Tag: v2.6.24-rc1~547 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00d2c2d4aead747d0fbee99001b00612d1082b0;p=pandora-kernel.git fuse: truncate on spontaneous size change Memory mappings were only truncated on an explicit truncate, but not when the file size was changed externally. Fix this by moving the truncation code from fuse_setattr to fuse_change_attributes. Yes, there are races between write and and external truncation, but we can't really do anything about them. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed