|
@@ -1654,6 +1654,16 @@ xfs_fs_fill_super(
|
|
|
"DAX and reflink have not been tested together!");
|
|
|
}
|
|
|
|
|
|
+ if (mp->m_flags & XFS_MOUNT_DISCARD) {
|
|
|
+ struct request_queue *q = bdev_get_queue(sb->s_bdev);
|
|
|
+
|
|
|
+ if (!blk_queue_discard(q)) {
|
|
|
+ xfs_warn(mp, "mounting with \"discard\" option, but "
|
|
|
+ "the device does not support discard");
|
|
|
+ mp->m_flags &= ~XFS_MOUNT_DISCARD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
|
|
|
if (mp->m_sb.sb_rblocks) {
|
|
|
xfs_alert(mp,
|