X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdfs%2Fnamei.c;h=66300794611cf9f6cac15cde3e216483a33a2661;hp=12d0bb660284fb5c47ebcf377250c341f0d79f3b;hb=852cdc6be859a37f6f26b7f7c2848f458998e043;hpb=8688197f18b85befc95d8bb812c71cc6bec47284;ds=sidebyside diff --git a/lustre/obdfs/namei.c b/lustre/obdfs/namei.c index 12d0bb6..6630079 100644 --- a/lustre/obdfs/namei.c +++ b/lustre/obdfs/namei.c @@ -860,8 +860,7 @@ int obdfs_symlink (struct inode * dir, struct dentry *dentry, const char * symna symname [l]; l++) ; - /* For obdfs we always use normal (not fast) symlinks - if (l >= sizeof (inode->u.ext2_i.i_data)) { */ + if (l >= sizeof (inode->u.ext2_i.i_data)) { CDEBUG(D_INODE, "l=%d, normal symlink\n", l); name_page = obdfs_getpage(inode, 0, 1, LOCKED); @@ -873,12 +872,12 @@ int obdfs_symlink (struct inode * dir, struct dentry *dentry, const char * symna return err; } link = (char *)page_address(name_page); - /* } else { + } else { link = (char *) inode->u.ext2_i.i_data; CDEBUG(D_INODE, "l=%d, fast symlink\n", l); - } */ + } i = 0; while (i < inode->i_sb->s_blocksize - 1 && (c = *(symname++))) link[i++] = c;