summaryrefslogtreecommitdiff
path: root/fs/f2fs/xattr.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-11-29 02:33:38 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-11-30 02:42:58 +0300
commit26787236b36660baf4d136281d40b5bb33a570ec (patch)
tree435509146c5e3fe116de2c84d15fe1bd48622f43 /fs/f2fs/xattr.c
parent8508e44ae98622f841f5ef29d0bf3d5db4e0c1cc (diff)
downloadlinux-26787236b36660baf4d136281d40b5bb33a570ec.tar.xz
f2fs: do not activate auto_recovery for fallocated i_size
If a file needs to keep its i_size by fallocate, we need to turn off auto recovery during roll-forward recovery. This will resolve the below scenario. 1. xfs_io -f /mnt/f2fs/file -c "pwrite 0 4096" -c "fsync" 2. xfs_io -f /mnt/f2fs/file -c "falloc -k 4096 4096" -c "fsync" 3. md5sum /mnt/f2fs/file; 4. godown /mnt/f2fs/ 5. umount /mnt/f2fs/ 6. mount -t f2fs /dev/sdx /mnt/f2fs 7. md5sum /mnt/f2fs/file Reported-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/xattr.c')
0 files changed, 0 insertions, 0 deletions