Commit 5f1cf94
ext4: clear DISCARD flag if device does not support discard
commit 79add3a ("ext4: notify when discard is not supported")
noted that keeping the DISCARD flag is for possibility that the underlying
device might change in future even without file system remount. However,
this scenario has rarely occurred in practice on the device side. Even if
it does occur, it can be resolved with remount. Clearing the DISCARD flag
not only prevents confusion caused by mount options but also avoids
sending unnecessary discard commands.
Signed-off-by: Diangang Li <lidiangang@bytedance.com>
Link: https://patch.msgid.link/20250311021310.669524-1-lidiangang@bytedance.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 7437176 commit 5f1cf94
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5620 | 5620 | | |
5621 | 5621 | | |
5622 | 5622 | | |
5623 | | - | |
| 5623 | + | |
5624 | 5624 | | |
5625 | 5625 | | |
| 5626 | + | |
| 5627 | + | |
5626 | 5628 | | |
5627 | 5629 | | |
5628 | 5630 | | |
| |||
0 commit comments