diff options
Diffstat (limited to 'fs/btrfs/root-tree.c')
| -rw-r--r-- | fs/btrfs/root-tree.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 6bb465cca20..10d8e4d8807 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c @@ -544,8 +544,8 @@ void btrfs_update_root_times(struct btrfs_trans_handle *trans,  	struct timespec ct = CURRENT_TIME;  	spin_lock(&root->root_times_lock); -	item->ctransid = trans->transid; +	item->ctransid = cpu_to_le64(trans->transid);  	item->ctime.sec = cpu_to_le64(ct.tv_sec); -	item->ctime.nsec = cpu_to_le64(ct.tv_nsec); +	item->ctime.nsec = cpu_to_le32(ct.tv_nsec);  	spin_unlock(&root->root_times_lock);  }  |