orangefs: move code which sets i_link to orangefs_inode_getattr
authorMartin Brandenburg <martin@omnibond.com>
Fri, 18 Mar 2016 18:20:15 +0000 (14:20 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 23 Mar 2016 21:36:16 +0000 (17:36 -0400)
Everything else setting inode->i_ values is in there.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/inode.c
fs/orangefs/orangefs-utils.c

index 8f047722cb44e325332ef070a365ea619a5917b3..2e521ec734c496fe46b82c1693cdee77efb45777 100644 (file)
@@ -275,8 +275,6 @@ int orangefs_getattr(struct vfsmount *mnt,
                /* override block size reported to stat */
                orangefs_inode = ORANGEFS_I(inode);
                kstat->blksize = orangefs_inode->blksize;
-
-               inode->i_link = ORANGEFS_I(dentry->d_inode)->link_target;
        }
        return ret;
 }
index 36ee30d1f0ad0077e20683950d5da48a79554f48..40f5163b56aa02142b4be4ed64eabd5a96ccfc18 100644 (file)
@@ -318,6 +318,7 @@ int orangefs_inode_getattr(struct inode *inode, int new, int size)
                        strlcpy(orangefs_inode->link_target,
                            new_op->downcall.resp.getattr.link_target,
                            ORANGEFS_NAME_MAX);
+                       inode->i_link = orangefs_inode->link_target;
                }
                break;
        }