fuse: readdirplus: change attributes once
If we got the inode through fuse_iget() then the attributes are already up-to-date. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
2914941e31
commit
fa2b721360
@ -1252,6 +1252,10 @@ static int fuse_direntplus_link(struct file *file,
|
|||||||
fi->nlookup++;
|
fi->nlookup++;
|
||||||
spin_unlock(&fc->lock);
|
spin_unlock(&fc->lock);
|
||||||
|
|
||||||
|
fuse_change_attributes(inode, &o->attr,
|
||||||
|
entry_attr_timeout(o),
|
||||||
|
attr_version);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The other branch to 'found' comes via fuse_iget()
|
* The other branch to 'found' comes via fuse_iget()
|
||||||
* which bumps nlookup inside
|
* which bumps nlookup inside
|
||||||
@ -1291,9 +1295,6 @@ static int fuse_direntplus_link(struct file *file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
found:
|
found:
|
||||||
fuse_change_attributes(inode, &o->attr, entry_attr_timeout(o),
|
|
||||||
attr_version);
|
|
||||||
|
|
||||||
fuse_change_entry_timeout(dentry, o);
|
fuse_change_entry_timeout(dentry, o);
|
||||||
|
|
||||||
err = 0;
|
err = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user