[PATCH] JFS: resize fixes (2 of 2)
Dave Kleikamp <[email protected]> Fri, 30 May 2003 08:34:15 -0500
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <[email protected]> |
# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1213 -> 1.1214 # fs/jfs/resize.c 1.7 -> 1.8 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/05/29 [email protected] 1.1214 # JFS: resize fixes # # Bmap control page was not always being updated. # Superblock's s_size field was incorrectly set on big-endian hardware. # -------------------------------------------- # diff -Nru a/fs/jfs/resize.c b/fs/jfs/resize.c --- a/fs/jfs/resize.c Fri May 30 08:25:41 2003 +++ b/fs/jfs/resize.c Fri May 30 08:25:41 2003 @@ -1,5 +1,5 @@ /* - * Copyright (c) International Business Machines Corp., 2000-2002 + * Copyright (c) International Business Machines Corp., 2000-2003 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -351,7 +351,7 @@ /* need to grow map file ? */ if (nPages == newNpages) - goto updateImap; + goto finalizeBmap; /* * grow bmap file for the new map pages required: @@ -415,6 +415,7 @@ if (XSize) goto extendBmap; + finalizeBmap: /* finalize bmap */ dbFinalizeBmap(ipbmap); @@ -428,7 +429,6 @@ * (computation of ag number from agstart based on agsize * will correctly identify the new ag); */ - updateImap: /* if new AG size the same as old AG size, done! */ if (bmp->db_agsize != old_agsize) { if ((rc = diExtendFS(ipimap, ipbmap))) @@ -486,8 +486,8 @@ /* mark extendfs() completion */ j_sb->s_state &= cpu_to_le32(~FM_EXTENDFS); - j_sb->s_size = cpu_to_le64(bmp->db_mapsize) << - le16_to_cpu(j_sb->s_l2bfactor); + j_sb->s_size = cpu_to_le64(bmp->db_mapsize << + le16_to_cpu(j_sb->s_l2bfactor)); j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); /* update inline log space descriptor */