diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-15 17:36:29 +0100 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-23 22:36:15 +0100 |
commit | 8f24928d195fc32a6ba53c2329c5bbcaa59119bc (patch) | |
tree | b50dfdb7d1fafa83bfab147bfb0e3a77dd995438 /fs | |
parent | orangefs: use new orangefs_inode_getattr to get size in write and llseek (diff) | |
download | linux-8f24928d195fc32a6ba53c2329c5bbcaa59119bc.tar.xz linux-8f24928d195fc32a6ba53c2329c5bbcaa59119bc.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/orangefs/inode.c | 14 |
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, "orangefs_getattr: called on %s\n", dentry->d_name.name); - ret = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, - 0); + ret = orangefs_inode_getattr(inode, 0, 1); if (ret == 0) { generic_fillattr(inode, kstat); @@ -278,14 +277,6 @@ int orangefs_getattr(struct vfsmount *mnt, kstat->blksize = orangefs_inode->blksize; inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target; - } else { - /* assume an I/O error and flag inode as bad */ - gossip_debug(GOSSIP_INODE_DEBUG, - "%s:%s:%d calling make bad inode\n", - __FILE__, - __func__, - __LINE__); - orangefs_make_bad_inode(inode); } return ret; } @@ -300,8 +291,7 @@ int orangefs_permission(struct inode *inode, int mask) gossip_debug(GOSSIP_INODE_DEBUG, "%s: refreshing\n", __func__); /* Make sure the permission (and other common attrs) are up to date. */ - ret = orangefs_inode_old_getattr(inode, - ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0); + ret = orangefs_inode_getattr(inode, 0, 0); if (ret < 0) return ret; |