From: Jaegeuk Kim Subject: Re: [PATCH] f2fs:avoid creaing multi debugfs when mount more disks. Date: Tue, 15 Jan 2013 16:08:08 +0900 Message-ID: <1358233688.8234.50.camel@kjgkr> References: <201301141929076532360@gmail.com> Reply-To: jaegeuk.kim@samsung.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-EIjfASHaQ8dGoquGvwUP" Cc: linux-f2fs-devel , linux-fsdevel To: majianpeng Return-path: Received: from mailout3.samsung.com ([203.254.224.33]:46195 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971Ab3AOHIN (ORCPT ); Tue, 15 Jan 2013 02:08:13 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MGN008Y8NSGEZ00@mailout3.samsung.com> for linux-fsdevel@vger.kernel.org; Tue, 15 Jan 2013 16:08:11 +0900 (KST) Received: from [12.52.126.105] by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MGN00FEINTME630@mmp2.samsung.com> for linux-fsdevel@vger.kernel.org; Tue, 15 Jan 2013 16:08:11 +0900 (KST) In-reply-to: <201301141929076532360@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: --=-EIjfASHaQ8dGoquGvwUP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jianpeng, Could you review the following patch that was originally written by you? I added some description and fixed typos. Thanks, =46rom e80c3ff6f7cab22cb866a05f63897e950c5a6f9e Mon Sep 17 00:00:00 2001 From: majianpeng Date: Mon, 14 Jan 2013 19:29:10 +0800 Subject: [PATCH] f2fs: avoid creating multi debugfs entries when mounting many disks When f2fs is mounted on multiple disks, it should avoid redundant status files. One status file contains the whole f2fs information. Signed-off-by: Jianpeng Ma [jaegeuk.kim@samsung.com: fix subject and add description] Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index b8ed7a7..0c374d1 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -336,10 +336,11 @@ int f2fs_build_stats(struct f2fs_sb_info *sbi) if (retval) return retval; =20 - if (!debugfs_root) + if (!debugfs_root) { debugfs_root =3D debugfs_create_dir("f2fs", NULL); - - debugfs_create_file("status", S_IRUGO, debugfs_root, NULL, &stat_fops); + debugfs_create_file("status", S_IRUGO, debugfs_root, NULL, + &stat_fops); + } return 0; } =20 --=20 1.8.0.1.250.gb7973fb --=20 Jaegeuk Kim Samsung --=-EIjfASHaQ8dGoquGvwUP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJQ9QBYAAoJEEAUqH6CSFDS7JcP/0JoJU/zmVDU2yJ+3rZjDeXV khIrSnrRkEDJCDCHSFt5ZXLeQLvKt28Vh9AMWyZZuxQZ0KWuFYYzu6OQw/0wrUfd OP3/PcSySCi1P2M6fiRGDsFex62qxbbPcB7EwW302FSD51cvVHb27dUlFpBQUtYi FJDhGQft9DpjvxoGzXf3Di8mx22hI4uxigGQoxbn5TmFDSZEEy+E4Jczjies2rrf stzurMNMuP8PMUFzz93rK2AgdRf4hku0cTtGBlcKBBKG2AckMWRULDoAwzKK+CTY M991iQw9sdpNG0hCZ52kQyW1tt0An6ii4ssvPlCnCIrKIKCVhndd41tz9OcRMEqc Mx8kW6N0FcBjDp4bX+RHjGgLIFVCJ0tc52D8OD/UlTH1ZtuVqw1rLUR+ReUrEKyp 9JTZzq4fxL8ix1yaPf8gn1PnUsflpiyHKZtwpSWHj36YCmpnpDpEio6kivG5YXh2 XRpoUc+oApYFApL0wx+J4YYEKgGzU0O/le6CrioJyxWYYtYd7nWyPoYIc7ta2auo mn17jGUnZGBb4mAOA2wFQPRYTyqnzCgTgSxvyQipHqVfxW0AzcrkJfQe4msXcwvL 7oSm1RiWamKVG24HrKugKapV6UgDjjd+r/ZRMx5a7KnBqx31LlxZbug+licZmmS4 F0yjR9Dw+ToJGolLEkCr =Glqf -----END PGP SIGNATURE----- --=-EIjfASHaQ8dGoquGvwUP--