Commit c3688d2
ext4: unify SYNC mode checks in fallocate paths
In the ext4 fallocate call chain, SYNC mode handling is inconsistent:
some places check the inode state, while others check the open file
descriptor state. Unify these checks by evaluating both conditions
to ensure consistent behavior across all fallocate operations.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260327102939.1095257-11-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 7d81ec0 commit c3688d2
2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4782 | 4782 | | |
4783 | 4783 | | |
4784 | 4784 | | |
4785 | | - | |
| 4785 | + | |
4786 | 4786 | | |
4787 | 4787 | | |
4788 | 4788 | | |
| |||
4820 | 4820 | | |
4821 | 4821 | | |
4822 | 4822 | | |
4823 | | - | |
| 4823 | + | |
| 4824 | + | |
4824 | 4825 | | |
4825 | 4826 | | |
4826 | 4827 | | |
| |||
5593 | 5594 | | |
5594 | 5595 | | |
5595 | 5596 | | |
5596 | | - | |
| 5597 | + | |
5597 | 5598 | | |
5598 | 5599 | | |
5599 | 5600 | | |
| |||
5717 | 5718 | | |
5718 | 5719 | | |
5719 | 5720 | | |
5720 | | - | |
| 5721 | + | |
5721 | 5722 | | |
5722 | 5723 | | |
5723 | 5724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4531 | 4531 | | |
4532 | 4532 | | |
4533 | 4533 | | |
4534 | | - | |
| 4534 | + | |
4535 | 4535 | | |
4536 | 4536 | | |
4537 | 4537 | | |
| |||
0 commit comments