diff options
Diffstat (limited to 'fs/ext3/inode.c')
| -rw-r--r-- | fs/ext3/inode.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index f8424ad89971..5fa453b49a64 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | #include <linux/uio.h> | 37 | #include <linux/uio.h> |
| 38 | #include <linux/bio.h> | 38 | #include <linux/bio.h> |
| 39 | #include <linux/fiemap.h> | 39 | #include <linux/fiemap.h> |
| 40 | #include <linux/namei.h> | ||
| 40 | #include "xattr.h" | 41 | #include "xattr.h" |
| 41 | #include "acl.h" | 42 | #include "acl.h" |
| 42 | 43 | ||
| @@ -1160,7 +1161,7 @@ static int ext3_write_begin(struct file *file, struct address_space *mapping, | |||
| 1160 | to = from + len; | 1161 | to = from + len; |
| 1161 | 1162 | ||
| 1162 | retry: | 1163 | retry: |
| 1163 | page = __grab_cache_page(mapping, index); | 1164 | page = grab_cache_page_write_begin(mapping, index, flags); |
| 1164 | if (!page) | 1165 | if (!page) |
| 1165 | return -ENOMEM; | 1166 | return -ENOMEM; |
| 1166 | *pagep = page; | 1167 | *pagep = page; |
| @@ -2817,9 +2818,11 @@ struct inode *ext3_iget(struct super_block *sb, unsigned long ino) | |||
| 2817 | inode->i_op = &ext3_dir_inode_operations; | 2818 | inode->i_op = &ext3_dir_inode_operations; |
| 2818 | inode->i_fop = &ext3_dir_operations; | 2819 | inode->i_fop = &ext3_dir_operations; |
| 2819 | } else if (S_ISLNK(inode->i_mode)) { | 2820 | } else if (S_ISLNK(inode->i_mode)) { |
| 2820 | if (ext3_inode_is_fast_symlink(inode)) | 2821 | if (ext3_inode_is_fast_symlink(inode)) { |
| 2821 | inode->i_op = &ext3_fast_symlink_inode_operations; | 2822 | inode->i_op = &ext3_fast_symlink_inode_operations; |
| 2822 | else { | 2823 | nd_terminate_link(ei->i_data, inode->i_size, |
| 2824 | sizeof(ei->i_data) - 1); | ||
| 2825 | } else { | ||
| 2823 | inode->i_op = &ext3_symlink_inode_operations; | 2826 | inode->i_op = &ext3_symlink_inode_operations; |
| 2824 | ext3_set_aops(inode); | 2827 | ext3_set_aops(inode); |
| 2825 | } | 2828 | } |
