Commit 7c5dffb
f2fs: compress: fix to relocate check condition in f2fs_{release,reserve}_compress_blocks()
Compress flag should be checked after inode lock held to avoid
racing w/ f2fs_setflags_common(), fix it.
Fixes: 4c8ff70 ("f2fs: support data compression")
Reported-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Closes: https://lore.kernel.org/linux-f2fs-devel/CAHJ8P3LdZXLc2rqeYjvymgYHr2+YLuJ0sLG9DdsJZmwO7deuhw@mail.gmail.com
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent 0f9b121 commit 7c5dffb
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3543 | 3543 | | |
3544 | 3544 | | |
3545 | 3545 | | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | 3546 | | |
3550 | 3547 | | |
3551 | 3548 | | |
| |||
3564 | 3561 | | |
3565 | 3562 | | |
3566 | 3563 | | |
3567 | | - | |
| 3564 | + | |
| 3565 | + | |
3568 | 3566 | | |
3569 | 3567 | | |
3570 | 3568 | | |
| |||
3725 | 3723 | | |
3726 | 3724 | | |
3727 | 3725 | | |
3728 | | - | |
3729 | | - | |
3730 | | - | |
3731 | 3726 | | |
3732 | 3727 | | |
3733 | 3728 | | |
| |||
3739 | 3734 | | |
3740 | 3735 | | |
3741 | 3736 | | |
3742 | | - | |
| 3737 | + | |
| 3738 | + | |
3743 | 3739 | | |
3744 | 3740 | | |
3745 | 3741 | | |
| |||
0 commit comments