aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_inode_fork.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/xfs_inode_fork.c b/fs/xfs/xfs_inode_fork.c
index 02f1083955bb..4fa56fcb38d1 100644
--- a/fs/xfs/xfs_inode_fork.c
+++ b/fs/xfs/xfs_inode_fork.c
@@ -1359,7 +1359,7 @@ xfs_iext_remove_indirect(
1359void 1359void
1360xfs_iext_realloc_direct( 1360xfs_iext_realloc_direct(
1361 xfs_ifork_t *ifp, /* inode fork pointer */ 1361 xfs_ifork_t *ifp, /* inode fork pointer */
1362 int new_size) /* new size of extents */ 1362 int new_size) /* new size of extents after adding */
1363{ 1363{
1364 int rnew_size; /* real new size of extents */ 1364 int rnew_size; /* real new size of extents */
1365 1365
@@ -1397,13 +1397,8 @@ xfs_iext_realloc_direct(
1397 rnew_size - ifp->if_real_bytes); 1397 rnew_size - ifp->if_real_bytes);
1398 } 1398 }
1399 } 1399 }
1400 /* 1400 /* Switch from the inline extent buffer to a direct extent list */
1401 * Switch from the inline extent buffer to a direct
1402 * extent list. Be sure to include the inline extent
1403 * bytes in new_size.
1404 */
1405 else { 1401 else {
1406 new_size += ifp->if_bytes;
1407 if (!is_power_of_2(new_size)) { 1402 if (!is_power_of_2(new_size)) {
1408 rnew_size = roundup_pow_of_two(new_size); 1403 rnew_size = roundup_pow_of_two(new_size);
1409 } 1404 }