aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-03-15 12:36:29 -0400
committerMike Marshall <hubcap@omnibond.com>2016-03-23 17:36:15 -0400
commit8f24928d195fc32a6ba53c2329c5bbcaa59119bc (patch)
treeb50dfdb7d1fafa83bfab147bfb0e3a77dd995438
parente2f7f0d798497f7e2f9296f706ff3263ede0b044 (diff)
orangefs: use new getattr in inode getattr and permission
Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
-rw-r--r--fs/orangefs/inode.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 45d5846301c4..8f047722cb44 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -268,8 +268,7 @@ int orangefs_getattr(struct vfsmount *mnt,
268 "orangefs_getattr: called on %s\n", 268 "orangefs_getattr: called on %s\n",
269 dentry->d_name.name); 269 dentry->d_name.name);
270 270
271 ret = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 271 ret = orangefs_inode_getattr(inode, 0, 1);
272 0);
273 if (ret == 0) { 272 if (ret == 0) {
274 generic_fillattr(inode, kstat); 273 generic_fillattr(inode, kstat);
275 274
@@ -278,14 +277,6 @@ int orangefs_getattr(struct vfsmount *mnt,
278 kstat->blksize = orangefs_inode->blksize; 277 kstat->blksize = orangefs_inode->blksize;
279 278
280 inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target; 279 inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target;
281 } else {
282 /* assume an I/O error and flag inode as bad */
283 gossip_debug(GOSSIP_INODE_DEBUG,
284 "%s:%s:%d calling make bad inode\n",
285 __FILE__,
286 __func__,
287 __LINE__);
288 orangefs_make_bad_inode(inode);
289 } 280 }
290 return ret; 281 return ret;
291} 282}
@@ -300,8 +291,7 @@ int orangefs_permission(struct inode *inode, int mask)
300 gossip_debug(GOSSIP_INODE_DEBUG, "%s: refreshing\n", __func__); 291 gossip_debug(GOSSIP_INODE_DEBUG, "%s: refreshing\n", __func__);
301 292
302 /* Make sure the permission (and other common attrs) are up to date. */ 293 /* Make sure the permission (and other common attrs) are up to date. */
303 ret = orangefs_inode_old_getattr(inode, 294 ret = orangefs_inode_getattr(inode, 0, 0);
304 ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0);
305 if (ret < 0) 295 if (ret < 0)
306 return ret; 296 return ret;
307 297