jfs: Fix a typo in function jfs_umount

Message ID 20221028121639.19341-1-okanatov@astralinux.ru
State New
Headers
Series jfs: Fix a typo in function jfs_umount |

Commit Message

Oleg Kanatov Oct. 28, 2022, 12:16 p.m. UTC
  When closing the block allocation map, an incorrect pointer
was NULL'ed. This commit fixes that.

Signed-off-by: Oleg Kanatov <okanatov@gmail.com>
---
 fs/jfs/jfs_umount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Dave Kleikamp Nov. 10, 2022, 9:46 p.m. UTC | #1
Applied. Thanks.

On 10/28/22 7:16AM, Oleg Kanatov wrote:
> When closing the block allocation map, an incorrect pointer
> was NULL'ed. This commit fixes that.
> 
> Signed-off-by: Oleg Kanatov <okanatov@gmail.com>
> ---
>   fs/jfs/jfs_umount.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/jfs/jfs_umount.c b/fs/jfs/jfs_umount.c
> index 3e8b13e6aa01..673e132c1c26 100644
> --- a/fs/jfs/jfs_umount.c
> +++ b/fs/jfs/jfs_umount.c
> @@ -89,7 +89,7 @@ int jfs_umount(struct super_block *sb)
>   	dbUnmount(ipbmap, 0);
>   
>   	diFreeSpecial(ipbmap);
> -	sbi->ipimap = NULL;
> +	sbi->ipbmap = NULL;
>   
>   	/*
>   	 * Make sure all metadata makes it to disk before we mark
  

Patch

diff --git a/fs/jfs/jfs_umount.c b/fs/jfs/jfs_umount.c
index 3e8b13e6aa01..673e132c1c26 100644
--- a/fs/jfs/jfs_umount.c
+++ b/fs/jfs/jfs_umount.c
@@ -89,7 +89,7 @@  int jfs_umount(struct super_block *sb)
 	dbUnmount(ipbmap, 0);
 
 	diFreeSpecial(ipbmap);
-	sbi->ipimap = NULL;
+	sbi->ipbmap = NULL;
 
 	/*
 	 * Make sure all metadata makes it to disk before we mark