aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 6c6614cae9e..15ff8d8d839 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3146,13 +3146,10 @@ static int ext4_da_write_begin(struct file *file, struct address_space *mapping,
3146 int ret, retries = 0; 3146 int ret, retries = 0;
3147 struct page *page; 3147 struct page *page;
3148 pgoff_t index; 3148 pgoff_t index;
3149 unsigned from, to;
3150 struct inode *inode = mapping->host; 3149 struct inode *inode = mapping->host;
3151 handle_t *handle; 3150 handle_t *handle;
3152 3151
3153 index = pos >> PAGE_CACHE_SHIFT; 3152 index = pos >> PAGE_CACHE_SHIFT;
3154 from = pos & (PAGE_CACHE_SIZE - 1);
3155 to = from + len;
3156 3153
3157 if (ext4_nonda_switch(inode->i_sb)) { 3154 if (ext4_nonda_switch(inode->i_sb)) {
3158 *fsdata = (void *)FALL_BACK_TO_NONDELALLOC; 3155 *fsdata = (void *)FALL_BACK_TO_NONDELALLOC;
@@ -5754,7 +5751,6 @@ static int ext4_expand_extra_isize(struct inode *inode,
5754{ 5751{
5755 struct ext4_inode *raw_inode; 5752 struct ext4_inode *raw_inode;
5756 struct ext4_xattr_ibody_header *header; 5753 struct ext4_xattr_ibody_header *header;
5757 struct ext4_xattr_entry *entry;
5758 5754
5759 if (EXT4_I(inode)->i_extra_isize >= new_extra_isize) 5755 if (EXT4_I(inode)->i_extra_isize >= new_extra_isize)
5760 return 0; 5756 return 0;
@@ -5762,7 +5758,6 @@ static int ext4_expand_extra_isize(struct inode *inode,
5762 raw_inode = ext4_raw_inode(&iloc); 5758 raw_inode = ext4_raw_inode(&iloc);
5763 5759
5764 header = IHDR(inode, raw_inode); 5760 header = IHDR(inode, raw_inode);
5765 entry = IFIRST(header);
5766 5761
5767 /* No extended attributes present */ 5762 /* No extended attributes present */
5768 if (!ext4_test_inode_state(inode, EXT4_STATE_XATTR) || 5763 if (!ext4_test_inode_state(inode, EXT4_STATE_XATTR) ||