Commit 0a66a596 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2:
  nilfs2: fix typo in comment of nilfs_dat_move function
  nilfs2: nilfs_iget_for_gc() returns ERR_PTR
parents 698fd6a2 f6c26ec5
...@@ -335,7 +335,7 @@ int nilfs_dat_move(struct inode *dat, __u64 vblocknr, sector_t blocknr) ...@@ -335,7 +335,7 @@ int nilfs_dat_move(struct inode *dat, __u64 vblocknr, sector_t blocknr)
* the device at this point. * the device at this point.
* *
* To prevent nilfs_dat_translate() from returning the * To prevent nilfs_dat_translate() from returning the
* uncommited block number, this makes a copy of the entry * uncommitted block number, this makes a copy of the entry
* buffer and redirects nilfs_dat_translate() to the copy. * buffer and redirects nilfs_dat_translate() to the copy.
*/ */
if (!buffer_nilfs_redirected(entry_bh)) { if (!buffer_nilfs_redirected(entry_bh)) {
......
...@@ -349,8 +349,8 @@ static int nilfs_ioctl_move_blocks(struct super_block *sb, ...@@ -349,8 +349,8 @@ static int nilfs_ioctl_move_blocks(struct super_block *sb,
ino = vdesc->vd_ino; ino = vdesc->vd_ino;
cno = vdesc->vd_cno; cno = vdesc->vd_cno;
inode = nilfs_iget_for_gc(sb, ino, cno); inode = nilfs_iget_for_gc(sb, ino, cno);
if (unlikely(inode == NULL)) { if (IS_ERR(inode)) {
ret = -ENOMEM; ret = PTR_ERR(inode);
goto failed; goto failed;
} }
do { do {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment