Commit a4c680a0 authored by Martin Brandenburg's avatar Martin Brandenburg Committed by Mike Marshall

orangefs: remove paranoia in orangefs_set_inode

Signed-off-by: default avatarMartin Brandenburg <martin@omnibond.com>
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 02a5cc53
...@@ -365,16 +365,8 @@ static inline ino_t orangefs_handle_hash(struct orangefs_object_kref *ref) ...@@ -365,16 +365,8 @@ static inline ino_t orangefs_handle_hash(struct orangefs_object_kref *ref)
static int orangefs_set_inode(struct inode *inode, void *data) static int orangefs_set_inode(struct inode *inode, void *data)
{ {
struct orangefs_object_kref *ref = (struct orangefs_object_kref *) data; struct orangefs_object_kref *ref = (struct orangefs_object_kref *) data;
struct orangefs_inode_s *orangefs_inode = NULL; ORANGEFS_I(inode)->refn.fs_id = ref->fs_id;
ORANGEFS_I(inode)->refn.khandle = ref->khandle;
/* Make sure that we have sane parameters */
if (!data || !inode)
return 0;
orangefs_inode = ORANGEFS_I(inode);
if (!orangefs_inode)
return 0;
orangefs_inode->refn.fs_id = ref->fs_id;
orangefs_inode->refn.khandle = ref->khandle;
return 0; return 0;
} }
......
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