diff options
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 7658b33e2653..23fff2f87783 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/buffer_head.h> | 32 | #include <linux/buffer_head.h> |
33 | #include <linux/mpage.h> | 33 | #include <linux/mpage.h> |
34 | #include <linux/fiemap.h> | 34 | #include <linux/fiemap.h> |
35 | #include <linux/namei.h> | ||
35 | #include "ext2.h" | 36 | #include "ext2.h" |
36 | #include "acl.h" | 37 | #include "acl.h" |
37 | #include "xip.h" | 38 | #include "xip.h" |
@@ -497,8 +498,6 @@ static int ext2_alloc_branch(struct inode *inode, | |||
497 | * ext2_splice_branch - splice the allocated branch onto inode. | 498 | * ext2_splice_branch - splice the allocated branch onto inode. |
498 | * @inode: owner | 499 | * @inode: owner |
499 | * @block: (logical) number of block we are adding | 500 | * @block: (logical) number of block we are adding |
500 | * @chain: chain of indirect blocks (with a missing link - see | ||
501 | * ext2_alloc_branch) | ||
502 | * @where: location of missing link | 501 | * @where: location of missing link |
503 | * @num: number of indirect blocks we are adding | 502 | * @num: number of indirect blocks we are adding |
504 | * @blks: number of direct blocks we are adding | 503 | * @blks: number of direct blocks we are adding |
@@ -1286,9 +1285,11 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino) | |||
1286 | else | 1285 | else |
1287 | inode->i_mapping->a_ops = &ext2_aops; | 1286 | inode->i_mapping->a_ops = &ext2_aops; |
1288 | } else if (S_ISLNK(inode->i_mode)) { | 1287 | } else if (S_ISLNK(inode->i_mode)) { |
1289 | if (ext2_inode_is_fast_symlink(inode)) | 1288 | if (ext2_inode_is_fast_symlink(inode)) { |
1290 | inode->i_op = &ext2_fast_symlink_inode_operations; | 1289 | inode->i_op = &ext2_fast_symlink_inode_operations; |
1291 | else { | 1290 | nd_terminate_link(ei->i_data, inode->i_size, |
1291 | sizeof(ei->i_data) - 1); | ||
1292 | } else { | ||
1292 | inode->i_op = &ext2_symlink_inode_operations; | 1293 | inode->i_op = &ext2_symlink_inode_operations; |
1293 | if (test_opt(inode->i_sb, NOBH)) | 1294 | if (test_opt(inode->i_sb, NOBH)) |
1294 | inode->i_mapping->a_ops = &ext2_nobh_aops; | 1295 | inode->i_mapping->a_ops = &ext2_nobh_aops; |