2020-01-21 03:39:23

by Alex Shi

[permalink] [raw]
Subject: [PATCH] OCFS2: remove FS_OCFS2_NM

This macro is't used from commit ab09203e302b ("sysctl fs: Remove
dead binary sysctl support"). Better to remove it.

Signed-off-by: Alex Shi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Joseph Qi <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
fs/ocfs2/stackglue.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c
index 8aa6a667860c..a191094694c6 100644
--- a/fs/ocfs2/stackglue.c
+++ b/fs/ocfs2/stackglue.c
@@ -656,8 +656,6 @@ static int ocfs2_sysfs_init(void)
* and easier to preserve the name.
*/

-#define FS_OCFS2_NM 1
-
static struct ctl_table ocfs2_nm_table[] = {
{
.procname = "hb_ctl_path",
--
1.8.3.1


2020-01-26 01:38:28

by Joseph Qi

[permalink] [raw]
Subject: Re: [PATCH] OCFS2: remove FS_OCFS2_NM



On 20/1/21 11:36, Alex Shi wrote:
> This macro is't used from commit ab09203e302b ("sysctl fs: Remove
> dead binary sysctl support"). Better to remove it.
>
> Signed-off-by: Alex Shi <[email protected]>
> Cc: Mark Fasheh <[email protected]>
> Cc: Joel Becker <[email protected]>
> Cc: Joseph Qi <[email protected]>
> Cc: [email protected]
> Cc: [email protected]

Acked-by: Joseph Qi <[email protected]>
> ---
> fs/ocfs2/stackglue.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c
> index 8aa6a667860c..a191094694c6 100644
> --- a/fs/ocfs2/stackglue.c
> +++ b/fs/ocfs2/stackglue.c
> @@ -656,8 +656,6 @@ static int ocfs2_sysfs_init(void)
> * and easier to preserve the name.
> */
>
> -#define FS_OCFS2_NM 1
> -
> static struct ctl_table ocfs2_nm_table[] = {
> {
> .procname = "hb_ctl_path",
>