dir.c (9ffbb9162312fd8113037cb3d94f787f06bbfa9a) dir.c (8da5ff23ce0a84d9845b01e6fe5047e17836bf5a)
1/*
2 FUSE: Filesystem in Userspace
3 Copyright (C) 2001-2006 Miklos Szeredi <miklos@szeredi.hu>
4
5 This program can be distributed under the terms of the GNU GPL.
6 See the file COPYING.
7*/
8

--- 149 unchanged lines hidden (view full) ---

158 if (!err && !outarg.nodeid)
159 err = -ENOENT;
160 if (!err) {
161 struct fuse_inode *fi = get_fuse_inode(inode);
162 if (outarg.nodeid != get_node_id(inode)) {
163 fuse_send_forget(fc, req, outarg.nodeid, 1);
164 return 0;
165 }
1/*
2 FUSE: Filesystem in Userspace
3 Copyright (C) 2001-2006 Miklos Szeredi <miklos@szeredi.hu>
4
5 This program can be distributed under the terms of the GNU GPL.
6 See the file COPYING.
7*/
8

--- 149 unchanged lines hidden (view full) ---

158 if (!err && !outarg.nodeid)
159 err = -ENOENT;
160 if (!err) {
161 struct fuse_inode *fi = get_fuse_inode(inode);
162 if (outarg.nodeid != get_node_id(inode)) {
163 fuse_send_forget(fc, req, outarg.nodeid, 1);
164 return 0;
165 }
166 spin_lock(&fc->lock);
166 fi->nlookup ++;
167 fi->nlookup ++;
168 spin_unlock(&fc->lock);
167 }
168 fuse_put_request(fc, req);
169 if (err || (outarg.attr.mode ^ inode->i_mode) & S_IFMT)
170 return 0;
171
172 fuse_change_attributes(inode, &outarg.attr);
173 fuse_change_timeout(entry, &outarg);
174 }

--- 1089 unchanged lines hidden ---
169 }
170 fuse_put_request(fc, req);
171 if (err || (outarg.attr.mode ^ inode->i_mode) & S_IFMT)
172 return 0;
173
174 fuse_change_attributes(inode, &outarg.attr);
175 fuse_change_timeout(entry, &outarg);
176 }

--- 1089 unchanged lines hidden ---