diff options
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index f9fbbe96c222..212fe74927ba 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c | |||
@@ -787,7 +787,6 @@ static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, | |||
787 | u64 to = pos + copied; | 787 | u64 to = pos + copied; |
788 | void *kaddr; | 788 | void *kaddr; |
789 | unsigned char *buf = dibh->b_data + sizeof(struct gfs2_dinode); | 789 | unsigned char *buf = dibh->b_data + sizeof(struct gfs2_dinode); |
790 | struct gfs2_dinode *di = (struct gfs2_dinode *)dibh->b_data; | ||
791 | 790 | ||
792 | BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); | 791 | BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); |
793 | kaddr = kmap_atomic(page, KM_USER0); | 792 | kaddr = kmap_atomic(page, KM_USER0); |
@@ -804,7 +803,6 @@ static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, | |||
804 | if (copied) { | 803 | if (copied) { |
805 | if (inode->i_size < to) | 804 | if (inode->i_size < to) |
806 | i_size_write(inode, to); | 805 | i_size_write(inode, to); |
807 | gfs2_dinode_out(ip, di); | ||
808 | mark_inode_dirty(inode); | 806 | mark_inode_dirty(inode); |
809 | } | 807 | } |
810 | 808 | ||
@@ -873,10 +871,6 @@ static int gfs2_write_end(struct file *file, struct address_space *mapping, | |||
873 | gfs2_page_add_databufs(ip, page, from, to); | 871 | gfs2_page_add_databufs(ip, page, from, to); |
874 | 872 | ||
875 | ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); | 873 | ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); |
876 | if (ret > 0) { | ||
877 | gfs2_dinode_out(ip, dibh->b_data); | ||
878 | mark_inode_dirty(inode); | ||
879 | } | ||
880 | 874 | ||
881 | if (inode == sdp->sd_rindex) { | 875 | if (inode == sdp->sd_rindex) { |
882 | adjust_fs_space(inode); | 876 | adjust_fs_space(inode); |