[RFC PATCH] i_version: remount support

From: Mimi Zohar
Date: Tue Oct 07 2008 - 07:31:01 EST


Add support for remounting a filesystem with the i_version option.

Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxx>
---
diff --git a/fs/super.c b/fs/super.c
index e931ae9..3758cbe 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -641,6 +641,8 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)
return retval;
}
sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK);
+ if (flags & MS_I_VERSION)
+ sb->s_flags |= MS_I_VERSION;
if (remount_rw)
DQUOT_ON_REMOUNT(sb);
return 0;
--
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/