diff options
-rw-r--r-- | fs/fuse/dir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 5dfbb5439e4e..37d85e05b1f5 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -1252,6 +1252,10 @@ static int fuse_direntplus_link(struct file *file, | |||
1252 | fi->nlookup++; | 1252 | fi->nlookup++; |
1253 | spin_unlock(&fc->lock); | 1253 | spin_unlock(&fc->lock); |
1254 | 1254 | ||
1255 | fuse_change_attributes(inode, &o->attr, | ||
1256 | entry_attr_timeout(o), | ||
1257 | attr_version); | ||
1258 | |||
1255 | /* | 1259 | /* |
1256 | * The other branch to 'found' comes via fuse_iget() | 1260 | * The other branch to 'found' comes via fuse_iget() |
1257 | * which bumps nlookup inside | 1261 | * which bumps nlookup inside |
@@ -1291,9 +1295,6 @@ static int fuse_direntplus_link(struct file *file, | |||
1291 | } | 1295 | } |
1292 | 1296 | ||
1293 | found: | 1297 | found: |
1294 | fuse_change_attributes(inode, &o->attr, entry_attr_timeout(o), | ||
1295 | attr_version); | ||
1296 | |||
1297 | fuse_change_entry_timeout(dentry, o); | 1298 | fuse_change_entry_timeout(dentry, o); |
1298 | 1299 | ||
1299 | err = 0; | 1300 | err = 0; |