diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-11 15:36:30 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-21 17:05:24 +0200 |
commit | de2b530bfb683fd75c31ab65ec42949f5f7a5b58 (patch) | |
tree | 5b2b03e06b93c37472c18b161dcb0dd4e6c2f33b /kernel/workqueue.c | |
parent | Btrfs: actually limit the size of delalloc range (diff) | |
download | linux-de2b530bfb683fd75c31ab65ec42949f5f7a5b58.tar.xz linux-de2b530bfb683fd75c31ab65ec42949f5f7a5b58.zip |
Btrfs: actually log directory we are fsync()'ing
If you just create a directory and then fsync that directory and then pull the
power plug you will come back up and the directory will not be there. That is
because we won't actually create directories if we've logged files inside of
them since they will be created on replay, but in this check we will set our
logged_trans of our current directory if it happens to be a directory, making us
think it doesn't need to be logged. Fix the logic to only do this to parent
directories. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions