diff options
Diffstat (limited to 'fs/ocfs2/move_extents.c')
-rw-r--r-- | fs/ocfs2/move_extents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c index 452068b45749..3d3f3c83065c 100644 --- a/fs/ocfs2/move_extents.c +++ b/fs/ocfs2/move_extents.c | |||
@@ -152,6 +152,7 @@ static int __ocfs2_move_extent(handle_t *handle, | |||
152 | } | 152 | } |
153 | 153 | ||
154 | out: | 154 | out: |
155 | ocfs2_free_path(path); | ||
155 | return ret; | 156 | return ret; |
156 | } | 157 | } |
157 | 158 | ||
@@ -845,7 +846,7 @@ static int __ocfs2_move_extents_range(struct buffer_head *di_bh, | |||
845 | struct ocfs2_move_extents *range = context->range; | 846 | struct ocfs2_move_extents *range = context->range; |
846 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 847 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
847 | 848 | ||
848 | if ((inode->i_size == 0) || (range->me_len == 0)) | 849 | if ((i_size_read(inode) == 0) || (range->me_len == 0)) |
849 | return 0; | 850 | return 0; |
850 | 851 | ||
851 | if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) | 852 | if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) |