xfs_super.c (876fdc7c4f366a709ac272ef3336ae7dce58f2af) | xfs_super.c (f93e5436f0ee5a85eaa3a86d2614d215873fb18b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6 7#include "xfs.h" 8#include "xfs_shared.h" --- 1470 unchanged lines hidden (view full) --- 1479 * full mount process as the mount process can lookup and cache inodes. 1480 */ 1481 sb->s_magic = XFS_SUPER_MAGIC; 1482 sb->s_blocksize = mp->m_sb.sb_blocksize; 1483 sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; 1484 sb->s_maxbytes = MAX_LFS_FILESIZE; 1485 sb->s_max_links = XFS_MAXLINK; 1486 sb->s_time_gran = 1; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6 7#include "xfs.h" 8#include "xfs_shared.h" --- 1470 unchanged lines hidden (view full) --- 1479 * full mount process as the mount process can lookup and cache inodes. 1480 */ 1481 sb->s_magic = XFS_SUPER_MAGIC; 1482 sb->s_blocksize = mp->m_sb.sb_blocksize; 1483 sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1; 1484 sb->s_maxbytes = MAX_LFS_FILESIZE; 1485 sb->s_max_links = XFS_MAXLINK; 1486 sb->s_time_gran = 1; |
1487 sb->s_time_min = XFS_LEGACY_TIME_MIN; 1488 sb->s_time_max = XFS_LEGACY_TIME_MAX; | 1487 if (xfs_sb_version_hasbigtime(&mp->m_sb)) { 1488 sb->s_time_min = xfs_bigtime_to_unix(XFS_BIGTIME_TIME_MIN); 1489 sb->s_time_max = xfs_bigtime_to_unix(XFS_BIGTIME_TIME_MAX); 1490 } else { 1491 sb->s_time_min = XFS_LEGACY_TIME_MIN; 1492 sb->s_time_max = XFS_LEGACY_TIME_MAX; 1493 } |
1489 sb->s_iflags |= SB_I_CGROUPWB; 1490 1491 set_posix_acl_flag(sb); 1492 1493 /* version 5 superblocks support inode version counters. */ 1494 if (XFS_SB_VERSION_NUM(&mp->m_sb) == XFS_SB_VERSION_5) 1495 sb->s_flags |= SB_I_VERSION; 1496 | 1494 sb->s_iflags |= SB_I_CGROUPWB; 1495 1496 set_posix_acl_flag(sb); 1497 1498 /* version 5 superblocks support inode version counters. */ 1499 if (XFS_SB_VERSION_NUM(&mp->m_sb) == XFS_SB_VERSION_5) 1500 sb->s_flags |= SB_I_VERSION; 1501 |
1502 if (xfs_sb_version_hasbigtime(&mp->m_sb)) 1503 xfs_warn(mp, 1504 "EXPERIMENTAL big timestamp feature in use. Use at your own risk!"); 1505 |
|
1497 if (mp->m_flags & XFS_MOUNT_DAX_ALWAYS) { 1498 bool rtdev_is_dax = false, datadev_is_dax; 1499 1500 xfs_warn(mp, 1501 "DAX enabled. Warning: EXPERIMENTAL, use at your own risk"); 1502 1503 datadev_is_dax = bdev_dax_supported(mp->m_ddev_targp->bt_bdev, 1504 sb->s_blocksize); --- 695 unchanged lines hidden --- | 1506 if (mp->m_flags & XFS_MOUNT_DAX_ALWAYS) { 1507 bool rtdev_is_dax = false, datadev_is_dax; 1508 1509 xfs_warn(mp, 1510 "DAX enabled. Warning: EXPERIMENTAL, use at your own risk"); 1511 1512 datadev_is_dax = bdev_dax_supported(mp->m_ddev_targp->bt_bdev, 1513 sb->s_blocksize); --- 695 unchanged lines hidden --- |