diff options
| author | Tsutomu Itoh <[email protected]> | 2013-12-13 00:51:42 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2014-01-28 21:19:56 +0000 |
| commit | 5662344b3c0d9ddd9afd48716d795166f982d5e2 (patch) | |
| tree | f96a684a9d279e0d283ace433f4f72c9c9959d66 /fs/btrfs/dev-replace.c | |
| parent | Btrfs: return immediately if tree log mod is not necessary (diff) | |
| download | kernel-5662344b3c0d9ddd9afd48716d795166f982d5e2.tar.gz kernel-5662344b3c0d9ddd9afd48716d795166f982d5e2.zip | |
Btrfs: fix error check of btrfs_lookup_dentry()
Clean up btrfs_lookup_dentry() to never return NULL, but PTR_ERR(-ENOENT)
instead. This keeps the return value convention consistent.
Callers who use btrfs_lookup_dentry() require a trivial update.
create_snapshot() in particular looks like it can also lose a BUG_ON(!inode)
which is not really needed - there seems less harm in returning ENOENT to
userspace at that point in the stack than there is to crash the machine.
Signed-off-by: Tsutomu Itoh <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
