fuse: update inode size and invalidate attributes on fallocate
authorBrian Foster <bfoster@redhat.com>
Fri, 17 May 2013 19:27:34 +0000 (15:27 -0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 20 May 2013 14:58:58 +0000 (16:58 +0200)
An fallocate request without FALLOC_FL_KEEP_SIZE set can extend the
size of a file. Update the inode size after a successful fallocate.

Also invalidate the inode attributes after a successful fallocate
to ensure we pick up the latest attribute values (i.e., i_blocks).

Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found