forked from Minki/linux
fuse: fix attribute caching after create
Invalidate attributes on create, since st_ctime is updated. Reported by Szabolcs Szakacsits. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
af440f5292
commit
0952b2a4a8
@ -416,6 +416,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode,
|
|||||||
fuse_put_request(fc, forget_req);
|
fuse_put_request(fc, forget_req);
|
||||||
d_instantiate(entry, inode);
|
d_instantiate(entry, inode);
|
||||||
fuse_change_entry_timeout(entry, &outentry);
|
fuse_change_entry_timeout(entry, &outentry);
|
||||||
|
fuse_invalidate_attr(dir);
|
||||||
file = lookup_instantiate_filp(nd, entry, generic_file_open);
|
file = lookup_instantiate_filp(nd, entry, generic_file_open);
|
||||||
if (IS_ERR(file)) {
|
if (IS_ERR(file)) {
|
||||||
ff->fh = outopen.fh;
|
ff->fh = outopen.fh;
|
||||||
|
Loading…
Reference in New Issue
Block a user