diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-03-15 16:28:20 +0100 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-03-23 22:36:14 +0100 |
commit | 3c9cf98d7b4f27e4303ea6e67db7f0c343a575b6 (patch) | |
tree | 88e392fbcce753bc8770b8b70c779ba4be4d2d09 /fs/orangefs/inode.c | |
parent | orangefs: remove inode->i_lock wrapper (diff) | |
download | linux-3c9cf98d7b4f27e4303ea6e67db7f0c343a575b6.tar.xz linux-3c9cf98d7b4f27e4303ea6e67db7f0c343a575b6.zip |
orangefs: rename orangefs_inode_getattr to orangefs_inode_old_getattr
This is motivated by orangefs_inode_old_getattr's habit of writing over
live inodes.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/inode.c')
-rw-r--r-- | fs/orangefs/inode.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index a45625240b17..fd591d44a97d 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -268,7 +268,8 @@ int orangefs_getattr(struct vfsmount *mnt, "orangefs_getattr: called on %s\n", dentry->d_name.name); - ret = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 0); + ret = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, + 0); if (ret == 0) { generic_fillattr(inode, kstat); @@ -299,7 +300,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_getattr(inode, + ret = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0); if (ret < 0) return ret; @@ -401,7 +402,7 @@ struct inode *orangefs_iget(struct super_block *sb, struct orangefs_object_kref if (!inode || !(inode->i_state & I_NEW)) return inode; - error = orangefs_inode_getattr(inode, + error = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0); if (error) { iget_failed(inode); @@ -447,7 +448,7 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir, orangefs_set_inode(inode, ref); inode->i_ino = hash; /* needed for stat etc */ - error = orangefs_inode_getattr(inode, + error = orangefs_inode_old_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT_NOSIZE, 0); if (error) goto out_iput; |