Lines Matching refs:vnode

27 	fid->vnode		= ntohl(*bp++);  in xdr_decode_AFSFid()
37 struct afs_vnode *vnode, in xdr_decode_AFSFetchStatus() argument
67 EXTRACT(status->parent.vnode); in xdr_decode_AFSFetchStatus()
91 if (vnode) { in xdr_decode_AFSFetchStatus()
92 status->parent.vid = vnode->fid.vid; in xdr_decode_AFSFetchStatus()
93 if (changed && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) { in xdr_decode_AFSFetchStatus()
95 i_size_write(&vnode->vfs_inode, size); in xdr_decode_AFSFetchStatus()
96 vnode->vfs_inode.i_uid = status->owner; in xdr_decode_AFSFetchStatus()
97 vnode->vfs_inode.i_gid = status->group; in xdr_decode_AFSFetchStatus()
98 vnode->vfs_inode.i_generation = vnode->fid.unique; in xdr_decode_AFSFetchStatus()
99 set_nlink(&vnode->vfs_inode, status->nlink); in xdr_decode_AFSFetchStatus()
101 mode = vnode->vfs_inode.i_mode; in xdr_decode_AFSFetchStatus()
105 vnode->vfs_inode.i_mode = mode; in xdr_decode_AFSFetchStatus()
108 vnode->vfs_inode.i_ctime.tv_sec = status->mtime_server; in xdr_decode_AFSFetchStatus()
109 vnode->vfs_inode.i_mtime = vnode->vfs_inode.i_ctime; in xdr_decode_AFSFetchStatus()
110 vnode->vfs_inode.i_atime = vnode->vfs_inode.i_ctime; in xdr_decode_AFSFetchStatus()
111 vnode->vfs_inode.i_version = data_version; in xdr_decode_AFSFetchStatus()
120 if (vnode && !test_bit(AFS_VNODE_UNSET, &vnode->flags)) { in xdr_decode_AFSFetchStatus()
123 vnode->fid.vid, vnode->fid.vnode); in xdr_decode_AFSFetchStatus()
124 set_bit(AFS_VNODE_MODIFIED, &vnode->flags); in xdr_decode_AFSFetchStatus()
125 set_bit(AFS_VNODE_ZAP_DATA, &vnode->flags); in xdr_decode_AFSFetchStatus()
135 static void xdr_decode_AFSCallBack(const __be32 **_bp, struct afs_vnode *vnode) in xdr_decode_AFSCallBack() argument
139 vnode->cb_version = ntohl(*bp++); in xdr_decode_AFSCallBack()
140 vnode->cb_expiry = ntohl(*bp++); in xdr_decode_AFSCallBack()
141 vnode->cb_type = ntohl(*bp++); in xdr_decode_AFSCallBack()
142 vnode->cb_expires = vnode->cb_expiry + get_seconds(); in xdr_decode_AFSCallBack()
241 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_fetch_status() local
255 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_fetch_status()
256 xdr_decode_AFSCallBack(&bp, vnode); in afs_deliver_fs_fetch_status()
279 struct afs_vnode *vnode, in afs_fs_fetch_file_status() argument
287 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
294 call->reply = vnode; in afs_fs_fetch_file_status()
302 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status()
303 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status()
304 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_file_status()
315 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_fetch_data() local
399 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_fetch_data()
400 xdr_decode_AFSCallBack(&bp, vnode); in afs_deliver_fs_fetch_data()
451 struct afs_vnode *vnode, in afs_fs_fetch_data64() argument
468 call->reply = vnode; in afs_fs_fetch_data64()
478 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_data64()
479 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_data64()
480 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_data64()
494 struct afs_vnode *vnode, in afs_fs_fetch_data() argument
503 return afs_fs_fetch_data64(server, key, vnode, offset, length, in afs_fs_fetch_data()
513 call->reply = vnode; in afs_fs_fetch_data()
523 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_data()
524 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_data()
525 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_data()
600 *bp++ = htonl(cb->fid.vnode); in afs_fs_give_up_callbacks()
623 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_create_vnode() local
639 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_create_vnode()
662 struct afs_vnode *vnode, in afs_fs_create() argument
686 call->reply = vnode; in afs_fs_create()
696 *bp++ = htonl(vnode->fid.vid); in afs_fs_create()
697 *bp++ = htonl(vnode->fid.vnode); in afs_fs_create()
698 *bp++ = htonl(vnode->fid.unique); in afs_fs_create()
722 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_remove() local
736 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_remove()
758 struct afs_vnode *vnode, in afs_fs_remove() argument
778 call->reply = vnode; in afs_fs_remove()
785 *bp++ = htonl(vnode->fid.vid); in afs_fs_remove()
786 *bp++ = htonl(vnode->fid.vnode); in afs_fs_remove()
787 *bp++ = htonl(vnode->fid.unique); in afs_fs_remove()
805 struct afs_vnode *dvnode = call->reply, *vnode = call->reply2; in afs_deliver_fs_link() local
819 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_link()
843 struct afs_vnode *vnode, in afs_fs_link() argument
863 call->reply2 = vnode; in afs_fs_link()
871 *bp++ = htonl(dvnode->fid.vnode); in afs_fs_link()
880 *bp++ = htonl(vnode->fid.vid); in afs_fs_link()
881 *bp++ = htonl(vnode->fid.vnode); in afs_fs_link()
882 *bp++ = htonl(vnode->fid.unique); in afs_fs_link()
893 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_symlink() local
909 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_symlink()
931 struct afs_vnode *vnode, in afs_fs_symlink() argument
958 call->reply = vnode; in afs_fs_symlink()
967 *bp++ = htonl(vnode->fid.vid); in afs_fs_symlink()
968 *bp++ = htonl(vnode->fid.vnode); in afs_fs_symlink()
969 *bp++ = htonl(vnode->fid.unique); in afs_fs_symlink()
1076 *bp++ = htonl(orig_dvnode->fid.vnode); in afs_fs_rename()
1087 *bp++ = htonl(new_dvnode->fid.vnode); in afs_fs_rename()
1106 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_store_data() local
1125 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, in afs_deliver_fs_store_data()
1129 afs_pages_written_back(vnode, call); in afs_deliver_fs_store_data()
1162 struct afs_vnode *vnode = wb->vnode; in afs_fs_store_data64() local
1167 key_serial(wb->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data64()
1177 call->reply = vnode; in afs_fs_store_data64()
1180 call->mapping = vnode->vfs_inode.i_mapping; in afs_fs_store_data64()
1186 call->store_version = vnode->status.data_version + 1; in afs_fs_store_data64()
1191 *bp++ = htonl(vnode->fid.vid); in afs_fs_store_data64()
1192 *bp++ = htonl(vnode->fid.vnode); in afs_fs_store_data64()
1193 *bp++ = htonl(vnode->fid.unique); in afs_fs_store_data64()
1220 struct afs_vnode *vnode = wb->vnode; in afs_fs_store_data() local
1226 key_serial(wb->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data()
1234 i_size = i_size_read(&vnode->vfs_inode); in afs_fs_store_data()
1254 call->reply = vnode; in afs_fs_store_data()
1257 call->mapping = vnode->vfs_inode.i_mapping; in afs_fs_store_data()
1263 call->store_version = vnode->status.data_version + 1; in afs_fs_store_data()
1268 *bp++ = htonl(vnode->fid.vid); in afs_fs_store_data()
1269 *bp++ = htonl(vnode->fid.vnode); in afs_fs_store_data()
1270 *bp++ = htonl(vnode->fid.unique); in afs_fs_store_data()
1293 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_store_status() local
1316 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, store_version); in afs_deliver_fs_store_status()
1352 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr_size64() argument
1359 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size64()
1370 call->reply = vnode; in afs_fs_setattr_size64()
1373 call->store_version = vnode->status.data_version + 1; in afs_fs_setattr_size64()
1379 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr_size64()
1380 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr_size64()
1381 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr_size64()
1400 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr_size() argument
1407 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size()
1411 return afs_fs_setattr_size64(server, key, vnode, attr, in afs_fs_setattr_size()
1421 call->reply = vnode; in afs_fs_setattr_size()
1424 call->store_version = vnode->status.data_version + 1; in afs_fs_setattr_size()
1430 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr_size()
1431 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr_size()
1432 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr_size()
1448 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr() argument
1455 return afs_fs_setattr_size(server, key, vnode, attr, in afs_fs_setattr()
1459 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr()
1468 call->reply = vnode; in afs_fs_setattr()
1476 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr()
1477 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr()
1478 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr()
1725 struct afs_vnode *vnode, in afs_fs_get_volume_status() argument
1746 call->reply = vnode; in afs_fs_get_volume_status()
1755 bp[1] = htonl(vnode->fid.vid); in afs_fs_get_volume_status()
1820 struct afs_vnode *vnode, in afs_fs_set_lock() argument
1834 call->reply = vnode; in afs_fs_set_lock()
1841 *bp++ = htonl(vnode->fid.vid); in afs_fs_set_lock()
1842 *bp++ = htonl(vnode->fid.vnode); in afs_fs_set_lock()
1843 *bp++ = htonl(vnode->fid.unique); in afs_fs_set_lock()
1854 struct afs_vnode *vnode, in afs_fs_extend_lock() argument
1867 call->reply = vnode; in afs_fs_extend_lock()
1874 *bp++ = htonl(vnode->fid.vid); in afs_fs_extend_lock()
1875 *bp++ = htonl(vnode->fid.vnode); in afs_fs_extend_lock()
1876 *bp++ = htonl(vnode->fid.unique); in afs_fs_extend_lock()
1886 struct afs_vnode *vnode, in afs_fs_release_lock() argument
1899 call->reply = vnode; in afs_fs_release_lock()
1906 *bp++ = htonl(vnode->fid.vid); in afs_fs_release_lock()
1907 *bp++ = htonl(vnode->fid.vnode); in afs_fs_release_lock()
1908 *bp++ = htonl(vnode->fid.unique); in afs_fs_release_lock()