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_client; 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 + ktime_get_real_seconds(); in xdr_decode_AFSCallBack()
240 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_fetch_status() local
252 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_fetch_status()
253 xdr_decode_AFSCallBack(&bp, vnode); in afs_deliver_fs_fetch_status()
276 struct afs_vnode *vnode, in afs_fs_fetch_file_status() argument
284 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
291 call->reply = vnode; in afs_fs_fetch_file_status()
299 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status()
300 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status()
301 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_file_status()
311 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_fetch_data() local
383 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_fetch_data()
384 xdr_decode_AFSCallBack(&bp, vnode); in afs_deliver_fs_fetch_data()
429 struct afs_vnode *vnode, in afs_fs_fetch_data64() argument
446 call->reply = vnode; in afs_fs_fetch_data64()
456 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_data64()
457 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_data64()
458 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_data64()
472 struct afs_vnode *vnode, in afs_fs_fetch_data() argument
481 return afs_fs_fetch_data64(server, key, vnode, offset, length, in afs_fs_fetch_data()
491 call->reply = vnode; in afs_fs_fetch_data()
501 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_data()
502 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_data()
503 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_data()
576 *bp++ = htonl(cb->fid.vnode); in afs_fs_give_up_callbacks()
598 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_create_vnode() local
612 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_create_vnode()
635 struct afs_vnode *vnode, in afs_fs_create() argument
659 call->reply = vnode; in afs_fs_create()
669 *bp++ = htonl(vnode->fid.vid); in afs_fs_create()
670 *bp++ = htonl(vnode->fid.vnode); in afs_fs_create()
671 *bp++ = htonl(vnode->fid.unique); in afs_fs_create()
680 *bp++ = htonl(vnode->vfs_inode.i_mtime.tv_sec); /* mtime */ in afs_fs_create()
694 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_remove() local
706 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_remove()
728 struct afs_vnode *vnode, in afs_fs_remove() argument
748 call->reply = vnode; in afs_fs_remove()
755 *bp++ = htonl(vnode->fid.vid); in afs_fs_remove()
756 *bp++ = htonl(vnode->fid.vnode); in afs_fs_remove()
757 *bp++ = htonl(vnode->fid.unique); in afs_fs_remove()
774 struct afs_vnode *dvnode = call->reply, *vnode = call->reply2; in afs_deliver_fs_link() local
786 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_link()
810 struct afs_vnode *vnode, in afs_fs_link() argument
830 call->reply2 = vnode; in afs_fs_link()
838 *bp++ = htonl(dvnode->fid.vnode); in afs_fs_link()
847 *bp++ = htonl(vnode->fid.vid); in afs_fs_link()
848 *bp++ = htonl(vnode->fid.vnode); in afs_fs_link()
849 *bp++ = htonl(vnode->fid.unique); in afs_fs_link()
859 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_symlink() local
873 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, NULL); in afs_deliver_fs_symlink()
895 struct afs_vnode *vnode, in afs_fs_symlink() argument
922 call->reply = vnode; in afs_fs_symlink()
931 *bp++ = htonl(vnode->fid.vid); in afs_fs_symlink()
932 *bp++ = htonl(vnode->fid.vnode); in afs_fs_symlink()
933 *bp++ = htonl(vnode->fid.unique); in afs_fs_symlink()
949 *bp++ = htonl(vnode->vfs_inode.i_mtime.tv_sec); /* mtime */ in afs_fs_symlink()
1037 *bp++ = htonl(orig_dvnode->fid.vnode); in afs_fs_rename()
1048 *bp++ = htonl(new_dvnode->fid.vnode); in afs_fs_rename()
1066 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_store_data() local
1078 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, in afs_deliver_fs_store_data()
1082 afs_pages_written_back(vnode, call); in afs_deliver_fs_store_data()
1115 struct afs_vnode *vnode = wb->vnode; in afs_fs_store_data64() local
1120 key_serial(wb->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data64()
1130 call->reply = vnode; in afs_fs_store_data64()
1133 call->mapping = vnode->vfs_inode.i_mapping; in afs_fs_store_data64()
1139 call->store_version = vnode->status.data_version + 1; in afs_fs_store_data64()
1144 *bp++ = htonl(vnode->fid.vid); in afs_fs_store_data64()
1145 *bp++ = htonl(vnode->fid.vnode); in afs_fs_store_data64()
1146 *bp++ = htonl(vnode->fid.unique); in afs_fs_store_data64()
1149 *bp++ = htonl(vnode->vfs_inode.i_mtime.tv_sec); /* mtime */ in afs_fs_store_data64()
1173 struct afs_vnode *vnode = wb->vnode; in afs_fs_store_data() local
1179 key_serial(wb->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data()
1187 i_size = i_size_read(&vnode->vfs_inode); in afs_fs_store_data()
1207 call->reply = vnode; in afs_fs_store_data()
1210 call->mapping = vnode->vfs_inode.i_mapping; in afs_fs_store_data()
1216 call->store_version = vnode->status.data_version + 1; in afs_fs_store_data()
1221 *bp++ = htonl(vnode->fid.vid); in afs_fs_store_data()
1222 *bp++ = htonl(vnode->fid.vnode); in afs_fs_store_data()
1223 *bp++ = htonl(vnode->fid.unique); in afs_fs_store_data()
1226 *bp++ = htonl(vnode->vfs_inode.i_mtime.tv_sec); /* mtime */ in afs_fs_store_data()
1245 struct afs_vnode *vnode = call->reply; in afs_deliver_fs_store_status() local
1261 xdr_decode_AFSFetchStatus(&bp, &vnode->status, vnode, store_version); in afs_deliver_fs_store_status()
1297 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr_size64() argument
1304 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size64()
1315 call->reply = vnode; in afs_fs_setattr_size64()
1318 call->store_version = vnode->status.data_version + 1; in afs_fs_setattr_size64()
1324 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr_size64()
1325 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr_size64()
1326 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr_size64()
1345 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr_size() argument
1352 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size()
1356 return afs_fs_setattr_size64(server, key, vnode, attr, in afs_fs_setattr_size()
1366 call->reply = vnode; in afs_fs_setattr_size()
1369 call->store_version = vnode->status.data_version + 1; in afs_fs_setattr_size()
1375 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr_size()
1376 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr_size()
1377 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr_size()
1393 struct afs_vnode *vnode, struct iattr *attr, in afs_fs_setattr() argument
1400 return afs_fs_setattr_size(server, key, vnode, attr, in afs_fs_setattr()
1404 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr()
1413 call->reply = vnode; in afs_fs_setattr()
1421 *bp++ = htonl(vnode->fid.vid); in afs_fs_setattr()
1422 *bp++ = htonl(vnode->fid.vnode); in afs_fs_setattr()
1423 *bp++ = htonl(vnode->fid.unique); in afs_fs_setattr()
1627 struct afs_vnode *vnode, in afs_fs_get_volume_status() argument
1648 call->reply = vnode; in afs_fs_get_volume_status()
1657 bp[1] = htonl(vnode->fid.vid); in afs_fs_get_volume_status()
1719 struct afs_vnode *vnode, in afs_fs_set_lock() argument
1733 call->reply = vnode; in afs_fs_set_lock()
1740 *bp++ = htonl(vnode->fid.vid); in afs_fs_set_lock()
1741 *bp++ = htonl(vnode->fid.vnode); in afs_fs_set_lock()
1742 *bp++ = htonl(vnode->fid.unique); in afs_fs_set_lock()
1753 struct afs_vnode *vnode, in afs_fs_extend_lock() argument
1766 call->reply = vnode; in afs_fs_extend_lock()
1773 *bp++ = htonl(vnode->fid.vid); in afs_fs_extend_lock()
1774 *bp++ = htonl(vnode->fid.vnode); in afs_fs_extend_lock()
1775 *bp++ = htonl(vnode->fid.unique); in afs_fs_extend_lock()
1785 struct afs_vnode *vnode, in afs_fs_release_lock() argument
1798 call->reply = vnode; in afs_fs_release_lock()
1805 *bp++ = htonl(vnode->fid.vid); in afs_fs_release_lock()
1806 *bp++ = htonl(vnode->fid.vnode); in afs_fs_release_lock()
1807 *bp++ = htonl(vnode->fid.unique); in afs_fs_release_lock()