> +static struct inode * xrc_fd2inode(unsigned int fd)
> +{
> + struct file * f = fget(fd);
> +
> + if (!f)
> + return NULL;
> +
> + return f->f_dentry->d_inode;
> +}
Am I missing something, or is there no fput() that matches this fget()?
Is there some reason why we don't need an igrab() of the inode we're
using here? (If we do need it then a corresponding iput() when we're
done with the inode is required of course)
- R.
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general