Displaying 1 result from an estimated 1 matches for "9210c60".
Did you mean:
3210,60
2011 Jun 29
0
[PATCH v3] Btrfs: fix error check of btrfs_lookup_dentry()
...eturn -ENOENT instead of NULL when no entry was found,
return value of btrfs_lookup_dentry is changed.
fs/btrfs/inode.c | 10 +++++++---
fs/btrfs/ioctl.c | 10 ++++++++--
2 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 447612d..9210c60 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4025,7 +4025,7 @@ struct inode *btrfs_lookup_dentry(struct inode *dir, struct dentry *dentry)
return ERR_PTR(ret);
if (location.objectid == 0)
- return NULL;
+ return ERR_PTR(-ENOENT);
if (location.type == BTRFS_INODE_ITEM_KEY) {...