patch-2.3.32 linux/fs/ufs/inode.c

Next file: linux/fs/ufs/namei.c
Previous file: linux/fs/udf/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.31/linux/fs/ufs/inode.c linux/fs/ufs/inode.c
@@ -631,7 +631,9 @@
 	else if (S_ISDIR(inode->i_mode))
 		inode->i_op = &ufs_dir_inode_operations;
 	else if (S_ISLNK(inode->i_mode))
-		inode->i_op = &ufs_symlink_inode_operations;
+		inode->i_op = inode->i_blocks
+				?&ufs_symlink_inode_operations
+				:&ufs_fast_symlink_inode_operations;
 	else
 		init_special_inode(inode, inode->i_mode,
 				   SWAB32(ufs_inode->ui_u2.ui_addr.ui_db[0]));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)