Message ID | 1309419392-17770-6-git-send-email-liubo2009@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 93c9d22..47dcbc0 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -1790,7 +1790,8 @@ static int btrfs_finish_ordered_io(struct inode *inode, u64 start, u64 end) if (!ret) { ret = btrfs_update_inode(trans, root, inode); BUG_ON(ret); - } + } else + btrfs_set_inode_last_trans(trans, inode); ret = 0; out: if (nolock) {
Due to DIO stuff, commit 1ef30be142d2cc60e2687ef267de864cf31be995 makes btrfs not call btrfs_update_inode when it does not update i_disk_size, but in buffer write case, we need to update btrfs internal inode's trans stuff, so that the log code can find the inode's changes. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> --- fs/btrfs/inode.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)