提交 ac446dcc 编写于 作者: L Linus Torvalds

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
...@@ -663,6 +663,8 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock, ...@@ -663,6 +663,8 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
} else { } else {
INCREMENT(mpStat.pagealloc); INCREMENT(mpStat.pagealloc);
mp = alloc_metapage(GFP_NOFS); mp = alloc_metapage(GFP_NOFS);
if (!mp)
goto unlock;
mp->page = page; mp->page = page;
mp->sb = inode->i_sb; mp->sb = inode->i_sb;
mp->flag = 0; mp->flag = 0;
......
...@@ -853,7 +853,6 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type, ...@@ -853,7 +853,6 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type,
} }
if (inode->i_size < off+len-towrite) if (inode->i_size < off+len-towrite)
i_size_write(inode, off+len-towrite); i_size_write(inode, off+len-towrite);
inode->i_version++;
inode->i_mtime = inode->i_ctime = current_time(inode); inode->i_mtime = inode->i_ctime = current_time(inode);
mark_inode_dirty(inode); mark_inode_dirty(inode);
inode_unlock(inode); inode_unlock(inode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册