diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-02 09:54:06 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-10 22:18:20 -0400 |
commit | 61ba64fc0768879a300599b011c176203bdf27d9 (patch) | |
tree | d04c61005dabd79e05edca9ed87c88c0a04905da /fs/inode.c | |
parent | a7a67e8a089e25ef48ab01dd34ce82678ef70f11 (diff) | |
download | lwn-61ba64fc0768879a300599b011c176203bdf27d9.tar.gz lwn-61ba64fc0768879a300599b011c176203bdf27d9.zip |
libfs: simple_follow_link()
let "fast" symlinks store the pointer to the body into ->i_link and
use simple_follow_link for ->follow_link()
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/inode.c b/fs/inode.c index ea37cd17b53f..952fb4852e38 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -152,6 +152,7 @@ int inode_init_always(struct super_block *sb, struct inode *inode) inode->i_pipe = NULL; inode->i_bdev = NULL; inode->i_cdev = NULL; + inode->i_link = NULL; inode->i_rdev = 0; inode->dirtied_when = 0; |