Skip to content
Commit 5f1cf94d authored by Diangang Li's avatar Diangang Li Committed by Theodore Ts'o
Browse files

ext4: clear DISCARD flag if device does not support discard



commit 79add3a3 ("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: default avatarDiangang Li <lidiangang@bytedance.com>
Link: https://patch.msgid.link/20250311021310.669524-1-lidiangang@bytedance.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 74371767
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment