diff options
| -rw-r--r-- | fs/ext4/move_extent.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 8c04afb90b1b..fb6f11709ae6 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c | |||
| @@ -571,12 +571,16 @@ ext4_move_extents(struct file *o_filp, struct file *d_filp, __u64 orig_blk, | |||
| 571 | orig_inode->i_ino, donor_inode->i_ino); | 571 | orig_inode->i_ino, donor_inode->i_ino); |
| 572 | return -EINVAL; | 572 | return -EINVAL; |
| 573 | } | 573 | } |
| 574 | /* TODO: This is non obvious task to swap blocks for inodes with full | 574 | |
| 575 | jornaling enabled */ | 575 | /* TODO: it's not obvious how to swap blocks for inodes with full |
| 576 | journaling enabled */ | ||
| 576 | if (ext4_should_journal_data(orig_inode) || | 577 | if (ext4_should_journal_data(orig_inode) || |
| 577 | ext4_should_journal_data(donor_inode)) { | 578 | ext4_should_journal_data(donor_inode)) { |
| 578 | return -EINVAL; | 579 | ext4_msg(orig_inode->i_sb, KERN_ERR, |
| 580 | "Online defrag not supported with data journaling"); | ||
| 581 | return -EOPNOTSUPP; | ||
| 579 | } | 582 | } |
| 583 | |||
| 580 | /* Protect orig and donor inodes against a truncate */ | 584 | /* Protect orig and donor inodes against a truncate */ |
| 581 | lock_two_nondirectories(orig_inode, donor_inode); | 585 | lock_two_nondirectories(orig_inode, donor_inode); |
| 582 | 586 | ||
