diff options
Diffstat (limited to 'fs/ufs/balloc.c')
-rw-r--r-- | fs/ufs/balloc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ufs/balloc.c b/fs/ufs/balloc.c index 7a4735f591bc..62193db34346 100644 --- a/fs/ufs/balloc.c +++ b/fs/ufs/balloc.c | |||
@@ -395,7 +395,6 @@ unsigned ufs_new_fragments(struct inode * inode, __fs32 * p, unsigned fragment, | |||
395 | if (result) { | 395 | if (result) { |
396 | *p = cpu_to_fs32(sb, result); | 396 | *p = cpu_to_fs32(sb, result); |
397 | *err = 0; | 397 | *err = 0; |
398 | inode->i_blocks += count << uspi->s_nspfshift; | ||
399 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 398 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
400 | } | 399 | } |
401 | unlock_super(sb); | 400 | unlock_super(sb); |
@@ -409,7 +408,6 @@ unsigned ufs_new_fragments(struct inode * inode, __fs32 * p, unsigned fragment, | |||
409 | result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); | 408 | result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); |
410 | if (result) { | 409 | if (result) { |
411 | *err = 0; | 410 | *err = 0; |
412 | inode->i_blocks += count << uspi->s_nspfshift; | ||
413 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 411 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
414 | unlock_super(sb); | 412 | unlock_super(sb); |
415 | UFSD("EXIT, result %u\n", result); | 413 | UFSD("EXIT, result %u\n", result); |
@@ -444,7 +442,6 @@ unsigned ufs_new_fragments(struct inode * inode, __fs32 * p, unsigned fragment, | |||
444 | 442 | ||
445 | *p = cpu_to_fs32(sb, result); | 443 | *p = cpu_to_fs32(sb, result); |
446 | *err = 0; | 444 | *err = 0; |
447 | inode->i_blocks += count << uspi->s_nspfshift; | ||
448 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); | 445 | UFS_I(inode)->i_lastfrag = max_t(u32, UFS_I(inode)->i_lastfrag, fragment + count); |
449 | unlock_super(sb); | 446 | unlock_super(sb); |
450 | if (newcount < request) | 447 | if (newcount < request) |