diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-11 14:17:00 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-21 11:05:25 -0400 |
commit | d555438b6e1dad139d26ab807f0af68a1fa47a86 (patch) | |
tree | 5d9282ac3f56598c504815774b47d96241335959 /arch/s390/kernel | |
parent | dd8e721773fdab5ccc7fde44ec57e30b563243b2 (diff) | |
download | op-kernel-dev-d555438b6e1dad139d26ab807f0af68a1fa47a86.zip op-kernel-dev-d555438b6e1dad139d26ab807f0af68a1fa47a86.tar.gz |
Btrfs: drop dir i_size when adding new names on replay
So if we have dir_index items in the log that means we also have the inode item
as well, which means that the inode's i_size is correct. However when we
process dir_index'es we call btrfs_add_link() which will increase the
directory's i_size for the new entry. To fix this we need to just set the dir
items i_size to 0, and then as we find dir_index items we adjust the i_size.
btrfs_add_link() will do it for new entries, and if the entry already exists we
can just add the name_len to the i_size ourselves. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'arch/s390/kernel')
0 files changed, 0 insertions, 0 deletions