Skip to content

Commit

Permalink
Merge tag 'jfs-4.9' of git://github.com/kleikamp/linux-shaggy
Browse files Browse the repository at this point in the history
Pull jfs updates from David Kleikamp:
 "Minor jfs updates"

* tag 'jfs-4.9' of git://github.com/kleikamp/linux-shaggy:
  jfs: Simplify code
  jfs: jump to error_out when filemap_{fdatawait, write_and_wait} fails
  • Loading branch information
Linus Torvalds committed Oct 4, 2016
2 parents 5fdf493 + 240c518 commit 2105b9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions fs/jfs/jfs_txnmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2893,8 +2893,7 @@ void txQuiesce(struct super_block *sb)
* on anon_list2. Let's check.
*/
if (!list_empty(&TxAnchor.anon_list2)) {
list_splice(&TxAnchor.anon_list2, &TxAnchor.anon_list);
INIT_LIST_HEAD(&TxAnchor.anon_list2);
list_splice_init(&TxAnchor.anon_list2, &TxAnchor.anon_list);
goto restart;
}
TXN_UNLOCK();
Expand Down
10 changes: 8 additions & 2 deletions fs/jfs/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,14 @@ int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize)
* cached in meta-data cache, and not written out
* by txCommit();
*/
filemap_fdatawait(ipbmap->i_mapping);
filemap_write_and_wait(ipbmap->i_mapping);
rc = filemap_fdatawait(ipbmap->i_mapping);
if (rc)
goto error_out;

rc = filemap_write_and_wait(ipbmap->i_mapping);
if (rc)
goto error_out;

diWriteSpecial(ipbmap, 0);

newPage = nPages; /* first new page number */
Expand Down

0 comments on commit 2105b9f

Please sign in to comment.