diff options
Diffstat (limited to 'fs/nilfs2/dat.c')
-rw-r--r-- | fs/nilfs2/dat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/nilfs2/dat.c b/fs/nilfs2/dat.c index 187dd07ba86c..013146755683 100644 --- a/fs/nilfs2/dat.c +++ b/fs/nilfs2/dat.c | |||
@@ -288,7 +288,7 @@ int nilfs_dat_mark_dirty(struct inode *dat, __u64 vblocknr) | |||
288 | * @vblocknrs and @nitems. | 288 | * @vblocknrs and @nitems. |
289 | * | 289 | * |
290 | * Return Value: On success, 0 is returned. On error, one of the following | 290 | * Return Value: On success, 0 is returned. On error, one of the following |
291 | * nagative error codes is returned. | 291 | * negative error codes is returned. |
292 | * | 292 | * |
293 | * %-EIO - I/O error. | 293 | * %-EIO - I/O error. |
294 | * | 294 | * |
@@ -388,8 +388,7 @@ int nilfs_dat_translate(struct inode *dat, __u64 vblocknr, sector_t *blocknrp) | |||
388 | ret = -ENOENT; | 388 | ret = -ENOENT; |
389 | goto out; | 389 | goto out; |
390 | } | 390 | } |
391 | if (blocknrp != NULL) | 391 | *blocknrp = blocknr; |
392 | *blocknrp = blocknr; | ||
393 | 392 | ||
394 | out: | 393 | out: |
395 | kunmap_atomic(kaddr, KM_USER0); | 394 | kunmap_atomic(kaddr, KM_USER0); |