From 9d6f7b388a677472ca33ab303394b30730cb1ef5 Mon Sep 17 00:00:00 2001 From: Wengang Wang Date: Fri, 20 Dec 2013 12:54:42 +0800 Subject: [PATCH] ocfs2: make 'buffered' as the default coherency option Orabug: 17988729 Customers upgrading to uek2 and above will see the default coherency option set to 'full' which impacts -ve performance. This patch changes coherence option to buffered which keeps the default behaviour same as old(UEK1). If an application that does direct i/o needs cache coherency then they can use mount option 'coherency=full' Signed-off-by: Wengang Wang Acked-by: Srinivas Eeda (cherry picked from commit 020a20029508d2d7f36470bebd23f053de4b0dbe) --- fs/ocfs2/super.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 403c5660b306..f342d1a99a60 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1283,6 +1283,13 @@ static int ocfs2_parse_options(struct super_block *sb, mopt->commit_interval = 0; mopt->mount_opt = OCFS2_MOUNT_NOINTR; + + /* + * Make 'buffered' as default coherency option. This is to keep the + * default behaviour unchanged(same as in UEK1) + */ + mopt->mount_opt |= OCFS2_MOUNT_COHERENCY_BUFFERED; + mopt->atime_quantum = OCFS2_DEFAULT_ATIME_QUANTUM; mopt->slot = OCFS2_INVALID_SLOT; mopt->localalloc_opt = -1; -- 2.50.1