Skip to content

Commit

Permalink
Btrfs: don't log the inode in file_write while growing the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mason committed Jul 2, 2009
1 parent 978d910 commit f597bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/btrfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ static noinline int dirty_and_release_pages(struct btrfs_trans_handle *trans,
}
if (end_pos > isize) {
i_size_write(inode, end_pos);
btrfs_update_inode(trans, root, inode);
/* we've only changed i_size in ram, and we haven't updated
* the disk i_size. There is no need to log the inode
* at this time.
*/
}
err = btrfs_end_transaction(trans, root);
out_unlock:
Expand Down

0 comments on commit f597bb1

Please sign in to comment.