|
Lines 722-727
Link Here
|
| 722 |
struct vnode *vp = (struct vnode *)kn->kn_fp->f_data; |
722 |
struct vnode *vp = (struct vnode *)kn->kn_fp->f_data; |
| 723 |
struct inode *ip = VTOI(vp); |
723 |
struct inode *ip = VTOI(vp); |
| 724 |
|
724 |
|
|
|
725 |
/* |
| 726 |
* If the underlying inode was freed(this can happen |
| 727 |
* if the filesystem is forcibly unmounted with |
| 728 |
* umount -f), return as there was activity on the file, |
| 729 |
* so the process will be woken up and later it will |
| 730 |
* receive an error during read XXX |
| 731 |
*/ |
| 732 |
if (ip == NULL) return 1; |
| 733 |
|
| 725 |
kn->kn_data = ip->i_size - kn->kn_fp->f_offset; |
734 |
kn->kn_data = ip->i_size - kn->kn_fp->f_offset; |
| 726 |
return (kn->kn_data != 0); |
735 |
return (kn->kn_data != 0); |
| 727 |
} |
736 |
} |