From ec927b0472bd45c48530d5b0cf0c9b883aed8b41 Mon Sep 17 00:00:00 2001 From: Vlad Apostolov Date: Tue, 28 Aug 2007 14:00:28 +1000 Subject: [PATCH] --- yaml --- r: 70835 b: refs/heads/master c: b93bd20cd59eb7ec172f95d08b100fea688d8bcf h: refs/heads/master i: 70833: 87dd1830b46f60df3438473b1baf5ba9b468875c 70831: a3c3f663cada618fefa99d99e9695fc5ca7fc0d2 v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_vfsops.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 11480cd5bf60..233bd9ca819d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: da353b0d64e070ae7c5342a0d56ec20ae9ef5cfb +refs/heads/master: b93bd20cd59eb7ec172f95d08b100fea688d8bcf diff --git a/trunk/fs/xfs/xfs_vfsops.c b/trunk/fs/xfs/xfs_vfsops.c index 1644be14a144..b4db8a208076 100644 --- a/trunk/fs/xfs/xfs_vfsops.c +++ b/trunk/fs/xfs/xfs_vfsops.c @@ -1720,7 +1720,18 @@ xfs_parseargs( int dsunit, dswidth, vol_dsunit, vol_dswidth; int iosize; - args->flags |= XFSMNT_IDELETE; + /* + * Applications using DMI filesystems often expect the + * inode generation number to be monotonically increasing. + * If we delete inode chunks we break this assumption, so + * keep unused inode chunks on disk for DMI filesystems + * until we come up with a better solution. + * Note that if "ikeep" or "noikeep" mount options are + * supplied, then they are honored. + */ + if (!(args->flags & XFSMNT_DMAPI)) + args->flags |= XFSMNT_IDELETE; + args->flags |= XFSMNT_BARRIER; args->flags2 |= XFSMNT2_COMPAT_IOSIZE;