aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2016-03-14 15:30:03 -0400
committerMike Marshall <hubcap@omnibond.com>2016-03-14 15:48:28 -0400
commita7d3e78ab53ff479fee3ad5a674a74c54c337b3b (patch)
treed634b9d79bb81e575b717d8e7fe7ca053e9478c6 /fs/orangefs
parent53f57fef43f5b9586c7a78acdeae27e206eae48b (diff)
Orangefs: follow_link -> get_link change
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/inode.c8
-rw-r--r--fs/orangefs/symlink.c15
2 files changed, 4 insertions, 19 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 4e923ece1e09..4a350ec2dbb3 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -268,17 +268,15 @@ 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 /*
272 * Similar to the above comment, a getattr also expects that all
273 * fields/attributes of the inode would be refreshed. So again, we
274 * dont have too much of a choice but refresh all the attributes.
275 */
276 ret = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 0); 271 ret = orangefs_inode_getattr(inode, ORANGEFS_ATTR_SYS_ALL_NOHINT, 0);
277 if (ret == 0) { 272 if (ret == 0) {
278 generic_fillattr(inode, kstat); 273 generic_fillattr(inode, kstat);
274
279 /* override block size reported to stat */ 275 /* override block size reported to stat */
280 orangefs_inode = ORANGEFS_I(inode); 276 orangefs_inode = ORANGEFS_I(inode);
281 kstat->blksize = orangefs_inode->blksize; 277 kstat->blksize = orangefs_inode->blksize;
278
279 inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target;
282 } else { 280 } else {
283 /* assume an I/O error and flag inode as bad */ 281 /* assume an I/O error and flag inode as bad */
284 gossip_debug(GOSSIP_INODE_DEBUG, 282 gossip_debug(GOSSIP_INODE_DEBUG,
diff --git a/fs/orangefs/symlink.c b/fs/orangefs/symlink.c
index 2b8541a7fc43..6418dd638680 100644
--- a/fs/orangefs/symlink.c
+++ b/fs/orangefs/symlink.c
@@ -8,22 +8,9 @@
8#include "orangefs-kernel.h" 8#include "orangefs-kernel.h"
9#include "orangefs-bufmap.h" 9#include "orangefs-bufmap.h"
10 10
11static const char *orangefs_follow_link(struct dentry *dentry, void **cookie)
12{
13 char *target = ORANGEFS_I(dentry->d_inode)->link_target;
14
15 gossip_debug(GOSSIP_INODE_DEBUG,
16 "%s: called on %s (target is %p)\n",
17 __func__, (char *)dentry->d_name.name, target);
18
19 *cookie = target;
20
21 return target;
22}
23
24struct inode_operations orangefs_symlink_inode_operations = { 11struct inode_operations orangefs_symlink_inode_operations = {
25 .readlink = generic_readlink, 12 .readlink = generic_readlink,
26 .follow_link = orangefs_follow_link, 13 .get_link = simple_get_link,
27 .setattr = orangefs_setattr, 14 .setattr = orangefs_setattr,
28 .getattr = orangefs_getattr, 15 .getattr = orangefs_getattr,
29 .listxattr = orangefs_listxattr, 16 .listxattr = orangefs_listxattr,