From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dongsheng Yang Subject: [PATCH v2 01/35] fs: introduce a ->s_cdev field into struct super_block Date: Thu, 30 Jul 2015 13:47:57 +0800 Message-ID: <1438235311-23788-2-git-send-email-yangds.fnst@cn.fujitsu.com> References: <1438235311-23788-1-git-send-email-yangds.fnst@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , Dongsheng Yang To: , , , Return-path: Received: from cn.fujitsu.com ([59.151.112.132]:36275 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750741AbbG3FyL (ORCPT ); Thu, 30 Jul 2015 01:54:11 -0400 In-Reply-To: <1438235311-23788-1-git-send-email-yangds.fnst@cn.fujitsu.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: There are some filesystems are running on char devs, such as ubifs. So we need a field in super_block to hold a reference to the char device. Signed-off-by: Dongsheng Yang --- include/linux/fs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index 35ec87e..2f1d9499 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1284,6 +1284,7 @@ struct super_block { struct hlist_bl_head s_anon; /* anonymous dentries for (nfs) exporting */ struct list_head s_mounts; /* list of mounts; _not_ for fs use */ struct block_device *s_bdev; + struct cdev *s_cdev; struct backing_dev_info *s_bdi; struct mtd_info *s_mtd; struct hlist_node s_instances; -- 1.8.4.2