Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190082
b: refs/heads/master
c: 2b0b395
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Dave Kleikamp committed Apr 16, 2010
1 parent 899786b commit 9261e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d7eecb483cc29e929bbc5515b8def830d7fc6ad2
refs/heads/master: 2b0b39517d1af5294128dbc2fd7ed39c8effa540
6 changes: 5 additions & 1 deletion trunk/fs/jfs/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize)
struct inode *iplist[1];
struct jfs_superblock *j_sb, *j_sb2;
uint old_agsize;
int agsizechanged = 0;
struct buffer_head *bh, *bh2;

/* If the volume hasn't grown, get out now */
Expand Down Expand Up @@ -333,6 +334,9 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize)
*/
if ((rc = dbExtendFS(ipbmap, XAddress, nblocks)))
goto error_out;

agsizechanged |= (bmp->db_agsize != old_agsize);

/*
* the map now has extended to cover additional nblocks:
* dn_mapsize = oldMapsize + nblocks;
Expand Down Expand Up @@ -432,7 +436,7 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize)
* will correctly identify the new ag);
*/
/* if new AG size the same as old AG size, done! */
if (bmp->db_agsize != old_agsize) {
if (agsizechanged) {
if ((rc = diExtendFS(ipimap, ipbmap)))
goto error_out;

Expand Down

0 comments on commit 9261e16

Please sign in to comment.