From: Miklos Szeredi Date: Wed, 6 Feb 2008 09:38:38 +0000 (-0800) Subject: fuse: fix attribute caching after create X-Git-Tag: v2.6.25-rc1~626 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0952b2a4a82b2deb76463dbcf1355b806dc81134;p=linux-2.6-omap-h63xx.git fuse: fix attribute caching after create Invalidate attributes on create, since st_ctime is updated. Reported by Szabolcs Szakacsits. Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 80d2f5292cf..f56f91bd38b 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -416,6 +416,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode, fuse_put_request(fc, forget_req); d_instantiate(entry, inode); fuse_change_entry_timeout(entry, &outentry); + fuse_invalidate_attr(dir); file = lookup_instantiate_filp(nd, entry, generic_file_open); if (IS_ERR(file)) { ff->fh = outopen.fh;