From: Miklos Szeredi Date: Wed, 17 Jul 2013 12:53:53 +0000 (+0200) Subject: fuse: readdirplus: change attributes once X-Git-Tag: upstream/snapshot3+hdmi~4655^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa2b7213600f8110ebac64acebc78a885b0594a0;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 --- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 5dfbb54..37d85e0 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1252,6 +1252,10 @@ static int fuse_direntplus_link(struct file *file, fi->nlookup++; 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() * which bumps nlookup inside @@ -1291,9 +1295,6 @@ static int fuse_direntplus_link(struct file *file, } found: - fuse_change_attributes(inode, &o->attr, entry_attr_timeout(o), - attr_version); - fuse_change_entry_timeout(dentry, o); err = 0;