aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_vfsops.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/xfs/xfs_vfsops.c b/fs/xfs/xfs_vfsops.c
index 1644be14a144..b4db8a208076 100644
--- a/fs/xfs/xfs_vfsops.c
+++ b/fs/xfs/xfs_vfsops.c
@@ -1720,7 +1720,18 @@ xfs_parseargs(
1720 int dsunit, dswidth, vol_dsunit, vol_dswidth; 1720 int dsunit, dswidth, vol_dsunit, vol_dswidth;
1721 int iosize; 1721 int iosize;
1722 1722
1723 args->flags |= XFSMNT_IDELETE; 1723 /*
1724 * Applications using DMI filesystems often expect the
1725 * inode generation number to be monotonically increasing.
1726 * If we delete inode chunks we break this assumption, so
1727 * keep unused inode chunks on disk for DMI filesystems
1728 * until we come up with a better solution.
1729 * Note that if "ikeep" or "noikeep" mount options are
1730 * supplied, then they are honored.
1731 */
1732 if (!(args->flags & XFSMNT_DMAPI))
1733 args->flags |= XFSMNT_IDELETE;
1734
1724 args->flags |= XFSMNT_BARRIER; 1735 args->flags |= XFSMNT_BARRIER;
1725 args->flags2 |= XFSMNT2_COMPAT_IOSIZE; 1736 args->flags2 |= XFSMNT2_COMPAT_IOSIZE;
1726 1737