diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 16:53:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 16:53:18 -0500 |
commit | ac446dcc8360b3d31a87f0c6390ab75a18fc44ba (patch) | |
tree | df69518285fd456b0c54a1c7bd83fb7ef3341dde | |
parent | 5cea7647e64657138138a3794ae172ee0fc175da (diff) | |
parent | 88a96fa84186deadb8b1ecc8cb066cd7afeb5bf2 (diff) |
Merge tag 'jfs-4.15' of git://github.com/kleikamp/linux-shaggy
Pull jfs updates from David Kleikamp:
"A couple small fixes for jfs"
* tag 'jfs-4.15' of git://github.com/kleikamp/linux-shaggy:
jfs: Add missing NULL pointer check in __get_metapage
jfs: remove increment of i_version counter
-rw-r--r-- | fs/jfs/jfs_metapage.c | 2 | ||||
-rw-r--r-- | fs/jfs/super.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c index 1c4b9ad4d7ab..1a3b0cc22ad3 100644 --- a/fs/jfs/jfs_metapage.c +++ b/fs/jfs/jfs_metapage.c | |||
@@ -663,6 +663,8 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock, | |||
663 | } else { | 663 | } else { |
664 | INCREMENT(mpStat.pagealloc); | 664 | INCREMENT(mpStat.pagealloc); |
665 | mp = alloc_metapage(GFP_NOFS); | 665 | mp = alloc_metapage(GFP_NOFS); |
666 | if (!mp) | ||
667 | goto unlock; | ||
666 | mp->page = page; | 668 | mp->page = page; |
667 | mp->sb = inode->i_sb; | 669 | mp->sb = inode->i_sb; |
668 | mp->flag = 0; | 670 | mp->flag = 0; |
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 2f14677169c3..2f7b3af5b8b7 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -853,7 +853,6 @@ out: | |||
853 | } | 853 | } |
854 | if (inode->i_size < off+len-towrite) | 854 | if (inode->i_size < off+len-towrite) |
855 | i_size_write(inode, off+len-towrite); | 855 | i_size_write(inode, off+len-towrite); |
856 | inode->i_version++; | ||
857 | inode->i_mtime = inode->i_ctime = current_time(inode); | 856 | inode->i_mtime = inode->i_ctime = current_time(inode); |
858 | mark_inode_dirty(inode); | 857 | mark_inode_dirty(inode); |
859 | inode_unlock(inode); | 858 | inode_unlock(inode); |