Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385AbdHaJgy (ORCPT ); Thu, 31 Aug 2017 05:36:54 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36409 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbdHaJgx (ORCPT ); Thu, 31 Aug 2017 05:36:53 -0400 X-Google-Smtp-Source: ADKCNb6GrdzS0ngWQ9vxp3A9rlPTvzHJz+ainx2V8iBn0nfuLNnHy+pZbFe47z7xGYtTXfIVHoEyVQ== From: Arvind Yadav To: yuchao0@huawei.com, jaegeuk@kernel.org Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH] f2fs: constify super_operations Date: Thu, 31 Aug 2017 15:06:24 +0530 Message-Id: <668bb6351adb54694cee5e94f213f5f4c63f96bd.1504171894.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 774 Lines: 25 super_operations are not supposed to change at runtime. "struct super_block" working with super_operations provided by work with const super_operations. So mark the non-const structs as const Signed-off-by: Arvind Yadav --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 32e4c02..2bf0869 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1199,7 +1199,7 @@ static inline void f2fs_quota_off_umount(struct super_block *sb) } #endif -static struct super_operations f2fs_sops = { +static const struct super_operations f2fs_sops = { .alloc_inode = f2fs_alloc_inode, .drop_inode = f2fs_drop_inode, .destroy_inode = f2fs_destroy_inode, -- 1.9.1