2020-01-21 08:51:55

by Alex Shi

[permalink] [raw]
Subject: [PATCH] fs/jfs: remove unused MAXL2PAGES

No one use it from Linux-2.6.12-rc2, so better to remove it.

Signed-off-by: Alex Shi <[email protected]>
Cc: Dave Kleikamp <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
fs/jfs/jfs_dmap.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index caade185e568..7dfcab2a2da6 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -4027,7 +4027,6 @@ static int dbGetL2AGSize(s64 nblocks)
*/
#define MAXL0PAGES (1 + LPERCTL)
#define MAXL1PAGES (1 + LPERCTL * MAXL0PAGES)
-#define MAXL2PAGES (1 + LPERCTL * MAXL1PAGES)

/*
* convert number of map pages to the zero origin top dmapctl level
--
1.8.3.1


2020-01-21 16:10:33

by Dave Kleikamp

[permalink] [raw]
Subject: Re: [PATCH] fs/jfs: remove unused MAXL2PAGES

On 1/21/20 2:49 AM, Alex Shi wrote:
> No one use it from Linux-2.6.12-rc2, so better to remove it.

Looks good. I'm changing this to "This has never been used."

Applied to jfs-next

Thanks,
Shaggy

>
> Signed-off-by: Alex Shi <[email protected]>
> Cc: Dave Kleikamp <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> ---
> fs/jfs/jfs_dmap.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
> index caade185e568..7dfcab2a2da6 100644
> --- a/fs/jfs/jfs_dmap.c
> +++ b/fs/jfs/jfs_dmap.c
> @@ -4027,7 +4027,6 @@ static int dbGetL2AGSize(s64 nblocks)
> */
> #define MAXL0PAGES (1 + LPERCTL)
> #define MAXL1PAGES (1 + LPERCTL * MAXL0PAGES)
> -#define MAXL2PAGES (1 + LPERCTL * MAXL1PAGES)
>
> /*
> * convert number of map pages to the zero origin top dmapctl level
>