Commit 9f4cbecd authored by Nathan Scott's avatar Nathan Scott

[XFS] XFS propagates MS_NOATIME through two levels internally but doesn't

actually use it.  Kill this dead code.	Signed-off-by: Christoph Hellwig
<hch@lst.de>

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:25086a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 0c9512d7
...@@ -76,8 +76,6 @@ xfs_args_allocate( ...@@ -76,8 +76,6 @@ xfs_args_allocate(
strncpy(args->fsname, sb->s_id, MAXNAMELEN); strncpy(args->fsname, sb->s_id, MAXNAMELEN);
/* Copy the already-parsed mount(2) flags we're interested in */ /* Copy the already-parsed mount(2) flags we're interested in */
if (sb->s_flags & MS_NOATIME)
args->flags |= XFSMNT_NOATIME;
if (sb->s_flags & MS_DIRSYNC) if (sb->s_flags & MS_DIRSYNC)
args->flags |= XFSMNT_DIRSYNC; args->flags |= XFSMNT_DIRSYNC;
if (sb->s_flags & MS_SYNCHRONOUS) if (sb->s_flags & MS_SYNCHRONOUS)
......
...@@ -68,8 +68,6 @@ struct xfs_mount_args { ...@@ -68,8 +68,6 @@ struct xfs_mount_args {
* enforcement */ * enforcement */
#define XFSMNT_PQUOTAENF 0x00000040 /* IRIX project quota limit #define XFSMNT_PQUOTAENF 0x00000040 /* IRIX project quota limit
* enforcement */ * enforcement */
#define XFSMNT_NOATIME 0x00000100 /* don't modify access
* times on reads */
#define XFSMNT_NOALIGN 0x00000200 /* don't allocate at #define XFSMNT_NOALIGN 0x00000200 /* don't allocate at
* stripe boundaries*/ * stripe boundaries*/
#define XFSMNT_RETERR 0x00000400 /* return error to user */ #define XFSMNT_RETERR 0x00000400 /* return error to user */
......
...@@ -386,8 +386,6 @@ typedef struct xfs_mount { ...@@ -386,8 +386,6 @@ typedef struct xfs_mount {
#define XFS_MOUNT_FS_SHUTDOWN (1ULL << 4) /* atomic stop of all filesystem #define XFS_MOUNT_FS_SHUTDOWN (1ULL << 4) /* atomic stop of all filesystem
operations, typically for operations, typically for
disk errors in metadata */ disk errors in metadata */
#define XFS_MOUNT_NOATIME (1ULL << 5) /* don't modify inode access
times on reads */
#define XFS_MOUNT_RETERR (1ULL << 6) /* return alignment errors to #define XFS_MOUNT_RETERR (1ULL << 6) /* return alignment errors to
user */ user */
#define XFS_MOUNT_NOALIGN (1ULL << 7) /* turn off stripe alignment #define XFS_MOUNT_NOALIGN (1ULL << 7) /* turn off stripe alignment
......
...@@ -258,8 +258,6 @@ xfs_start_flags( ...@@ -258,8 +258,6 @@ xfs_start_flags(
mp->m_inoadd = XFS_INO64_OFFSET; mp->m_inoadd = XFS_INO64_OFFSET;
} }
#endif #endif
if (ap->flags & XFSMNT_NOATIME)
mp->m_flags |= XFS_MOUNT_NOATIME;
if (ap->flags & XFSMNT_RETERR) if (ap->flags & XFSMNT_RETERR)
mp->m_flags |= XFS_MOUNT_RETERR; mp->m_flags |= XFS_MOUNT_RETERR;
if (ap->flags & XFSMNT_NOALIGN) if (ap->flags & XFSMNT_NOALIGN)
...@@ -654,11 +652,6 @@ xfs_mntupdate( ...@@ -654,11 +652,6 @@ xfs_mntupdate(
xfs_mount_t *mp = XFS_BHVTOM(bdp); xfs_mount_t *mp = XFS_BHVTOM(bdp);
int error; int error;
if (args->flags & XFSMNT_NOATIME)
mp->m_flags |= XFS_MOUNT_NOATIME;
else
mp->m_flags &= ~XFS_MOUNT_NOATIME;
if (args->flags & XFSMNT_BARRIER) if (args->flags & XFSMNT_BARRIER)
mp->m_flags |= XFS_MOUNT_BARRIER; mp->m_flags |= XFS_MOUNT_BARRIER;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment