Lines Matching refs:fc
275 int afs_fs_fetch_file_status(struct afs_fs_cursor *fc, struct afs_status_cb *scb, in afs_fs_fetch_file_status() argument
278 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_file_status()
283 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_fetch_file_status()
284 return yfs_fs_fetch_file_status(fc, scb, volsync); in afs_fs_fetch_file_status()
287 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
292 fc->ac.error = -ENOMEM; in afs_fs_fetch_file_status()
296 call->key = fc->key; in afs_fs_fetch_file_status()
307 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_file_status()
310 afs_set_fc_call(call, fc); in afs_fs_fetch_file_status()
311 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_fetch_file_status()
312 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_fetch_file_status()
475 static int afs_fs_fetch_data64(struct afs_fs_cursor *fc, in afs_fs_fetch_data64() argument
479 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_data64()
490 call->key = fc->key; in afs_fs_fetch_data64()
507 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_data64()
509 afs_set_fc_call(call, fc); in afs_fs_fetch_data64()
510 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_fetch_data64()
511 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_fetch_data64()
517 int afs_fs_fetch_data(struct afs_fs_cursor *fc, in afs_fs_fetch_data() argument
521 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_data()
526 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_fetch_data()
527 return yfs_fs_fetch_data(fc, scb, req); in afs_fs_fetch_data()
532 return afs_fs_fetch_data64(fc, scb, req); in afs_fs_fetch_data()
540 call->key = fc->key; in afs_fs_fetch_data()
555 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_data()
557 afs_set_fc_call(call, fc); in afs_fs_fetch_data()
558 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_fetch_data()
559 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_fetch_data()
610 int afs_fs_create(struct afs_fs_cursor *fc, in afs_fs_create() argument
617 struct afs_vnode *dvnode = fc->vnode; in afs_fs_create()
623 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)){ in afs_fs_create()
625 return yfs_fs_make_dir(fc, name, mode, dvnode_scb, in afs_fs_create()
628 return yfs_fs_create_file(fc, name, mode, dvnode_scb, in afs_fs_create()
644 call->key = fc->key; in afs_fs_create()
669 afs_use_fs_server(call, fc->cbi); in afs_fs_create()
671 afs_set_fc_call(call, fc); in afs_fs_create()
672 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_create()
673 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_create()
720 int afs_fs_remove(struct afs_fs_cursor *fc, struct afs_vnode *vnode, in afs_fs_remove() argument
723 struct afs_vnode *dvnode = fc->vnode; in afs_fs_remove()
729 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_remove()
730 return yfs_fs_remove(fc, vnode, name, isdir, dvnode_scb); in afs_fs_remove()
744 call->key = fc->key; in afs_fs_remove()
761 afs_use_fs_server(call, fc->cbi); in afs_fs_remove()
763 afs_set_fc_call(call, fc); in afs_fs_remove()
764 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_remove()
765 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_remove()
809 int afs_fs_link(struct afs_fs_cursor *fc, struct afs_vnode *vnode, in afs_fs_link() argument
814 struct afs_vnode *dvnode = fc->vnode; in afs_fs_link()
820 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_link()
821 return yfs_fs_link(fc, vnode, name, dvnode_scb, vnode_scb); in afs_fs_link()
833 call->key = fc->key; in afs_fs_link()
854 afs_use_fs_server(call, fc->cbi); in afs_fs_link()
856 afs_set_fc_call(call, fc); in afs_fs_link()
857 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_link()
858 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_link()
903 int afs_fs_symlink(struct afs_fs_cursor *fc, in afs_fs_symlink() argument
910 struct afs_vnode *dvnode = fc->vnode; in afs_fs_symlink()
916 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_symlink()
917 return yfs_fs_symlink(fc, name, contents, dvnode_scb, in afs_fs_symlink()
935 call->key = fc->key; in afs_fs_symlink()
967 afs_use_fs_server(call, fc->cbi); in afs_fs_symlink()
969 afs_set_fc_call(call, fc); in afs_fs_symlink()
970 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_symlink()
971 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_symlink()
1015 int afs_fs_rename(struct afs_fs_cursor *fc, in afs_fs_rename() argument
1022 struct afs_vnode *orig_dvnode = fc->vnode; in afs_fs_rename()
1028 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_rename()
1029 return yfs_fs_rename(fc, orig_name, in afs_fs_rename()
1051 call->key = fc->key; in afs_fs_rename()
1080 afs_use_fs_server(call, fc->cbi); in afs_fs_rename()
1082 afs_set_fc_call(call, fc); in afs_fs_rename()
1083 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_rename()
1084 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_rename()
1132 static int afs_fs_store_data64(struct afs_fs_cursor *fc, in afs_fs_store_data64() argument
1139 struct afs_vnode *vnode = fc->vnode; in afs_fs_store_data64()
1145 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data64()
1153 call->key = fc->key; in afs_fs_store_data64()
1184 afs_set_fc_call(call, fc); in afs_fs_store_data64()
1185 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_store_data64()
1186 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_store_data64()
1192 int afs_fs_store_data(struct afs_fs_cursor *fc, struct address_space *mapping, in afs_fs_store_data() argument
1197 struct afs_vnode *vnode = fc->vnode; in afs_fs_store_data()
1203 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_store_data()
1204 return yfs_fs_store_data(fc, mapping, first, last, offset, to, scb); in afs_fs_store_data()
1207 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_data()
1224 return afs_fs_store_data64(fc, mapping, first, last, offset, to, in afs_fs_store_data()
1233 call->key = fc->key; in afs_fs_store_data()
1260 afs_use_fs_server(call, fc->cbi); in afs_fs_store_data()
1262 afs_set_fc_call(call, fc); in afs_fs_store_data()
1263 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_store_data()
1264 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_store_data()
1320 static int afs_fs_setattr_size64(struct afs_fs_cursor *fc, struct iattr *attr, in afs_fs_setattr_size64() argument
1323 struct afs_vnode *vnode = fc->vnode; in afs_fs_setattr_size64()
1329 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size64()
1339 call->key = fc->key; in afs_fs_setattr_size64()
1358 afs_use_fs_server(call, fc->cbi); in afs_fs_setattr_size64()
1360 afs_set_fc_call(call, fc); in afs_fs_setattr_size64()
1361 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_setattr_size64()
1362 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_setattr_size64()
1369 static int afs_fs_setattr_size(struct afs_fs_cursor *fc, struct iattr *attr, in afs_fs_setattr_size() argument
1372 struct afs_vnode *vnode = fc->vnode; in afs_fs_setattr_size()
1378 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr_size()
1382 return afs_fs_setattr_size64(fc, attr, scb); in afs_fs_setattr_size()
1390 call->key = fc->key; in afs_fs_setattr_size()
1406 afs_use_fs_server(call, fc->cbi); in afs_fs_setattr_size()
1408 afs_set_fc_call(call, fc); in afs_fs_setattr_size()
1409 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_setattr_size()
1410 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_setattr_size()
1417 int afs_fs_setattr(struct afs_fs_cursor *fc, struct iattr *attr, in afs_fs_setattr() argument
1420 struct afs_vnode *vnode = fc->vnode; in afs_fs_setattr()
1425 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_setattr()
1426 return yfs_fs_setattr(fc, attr, scb); in afs_fs_setattr()
1429 return afs_fs_setattr_size(fc, attr, scb); in afs_fs_setattr()
1432 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_setattr()
1440 call->key = fc->key; in afs_fs_setattr()
1452 afs_use_fs_server(call, fc->cbi); in afs_fs_setattr()
1454 afs_set_fc_call(call, fc); in afs_fs_setattr()
1455 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_setattr()
1456 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_setattr()
1601 int afs_fs_get_volume_status(struct afs_fs_cursor *fc, in afs_fs_get_volume_status() argument
1604 struct afs_vnode *vnode = fc->vnode; in afs_fs_get_volume_status()
1609 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_get_volume_status()
1610 return yfs_fs_get_volume_status(fc, vs); in afs_fs_get_volume_status()
1619 call->key = fc->key; in afs_fs_get_volume_status()
1627 afs_use_fs_server(call, fc->cbi); in afs_fs_get_volume_status()
1629 afs_set_fc_call(call, fc); in afs_fs_get_volume_status()
1630 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_get_volume_status()
1631 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_get_volume_status()
1691 int afs_fs_set_lock(struct afs_fs_cursor *fc, afs_lock_type_t type, in afs_fs_set_lock() argument
1694 struct afs_vnode *vnode = fc->vnode; in afs_fs_set_lock()
1699 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_set_lock()
1700 return yfs_fs_set_lock(fc, type, scb); in afs_fs_set_lock()
1708 call->key = fc->key; in afs_fs_set_lock()
1720 afs_use_fs_server(call, fc->cbi); in afs_fs_set_lock()
1722 afs_set_fc_call(call, fc); in afs_fs_set_lock()
1723 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_set_lock()
1724 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_set_lock()
1730 int afs_fs_extend_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) in afs_fs_extend_lock() argument
1732 struct afs_vnode *vnode = fc->vnode; in afs_fs_extend_lock()
1737 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_extend_lock()
1738 return yfs_fs_extend_lock(fc, scb); in afs_fs_extend_lock()
1746 call->key = fc->key; in afs_fs_extend_lock()
1757 afs_use_fs_server(call, fc->cbi); in afs_fs_extend_lock()
1759 afs_set_fc_call(call, fc); in afs_fs_extend_lock()
1760 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_extend_lock()
1761 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_extend_lock()
1767 int afs_fs_release_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) in afs_fs_release_lock() argument
1769 struct afs_vnode *vnode = fc->vnode; in afs_fs_release_lock()
1774 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_release_lock()
1775 return yfs_fs_release_lock(fc, scb); in afs_fs_release_lock()
1783 call->key = fc->key; in afs_fs_release_lock()
1794 afs_use_fs_server(call, fc->cbi); in afs_fs_release_lock()
1796 afs_set_fc_call(call, fc); in afs_fs_release_lock()
1797 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_release_lock()
1798 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_release_lock()
1977 int afs_fs_fetch_status(struct afs_fs_cursor *fc, in afs_fs_fetch_status() argument
1986 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_fetch_status()
1987 return yfs_fs_fetch_status(fc, net, fid, scb, volsync); in afs_fs_fetch_status()
1990 key_serial(fc->key), fid->vid, fid->vnode); in afs_fs_fetch_status()
1994 fc->ac.error = -ENOMEM; in afs_fs_fetch_status()
1998 call->key = fc->key; in afs_fs_fetch_status()
2010 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_status()
2012 afs_set_fc_call(call, fc); in afs_fs_fetch_status()
2013 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_fetch_status()
2014 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_fetch_status()
2142 int afs_fs_inline_bulk_status(struct afs_fs_cursor *fc, in afs_fs_inline_bulk_status() argument
2153 if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) in afs_fs_inline_bulk_status()
2154 return yfs_fs_inline_bulk_status(fc, net, fids, statuses, in afs_fs_inline_bulk_status()
2158 key_serial(fc->key), fids[0].vid, fids[1].vnode, nr_fids); in afs_fs_inline_bulk_status()
2164 fc->ac.error = -ENOMEM; in afs_fs_inline_bulk_status()
2168 call->key = fc->key; in afs_fs_inline_bulk_status()
2183 afs_use_fs_server(call, fc->cbi); in afs_fs_inline_bulk_status()
2185 afs_set_fc_call(call, fc); in afs_fs_inline_bulk_status()
2186 afs_make_call(&fc->ac, call, GFP_NOFS); in afs_fs_inline_bulk_status()
2187 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_inline_bulk_status()
2277 struct afs_acl *afs_fs_fetch_acl(struct afs_fs_cursor *fc, in afs_fs_fetch_acl() argument
2280 struct afs_vnode *vnode = fc->vnode; in afs_fs_fetch_acl()
2286 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_acl()
2290 fc->ac.error = -ENOMEM; in afs_fs_fetch_acl()
2294 call->key = fc->key; in afs_fs_fetch_acl()
2306 afs_use_fs_server(call, fc->cbi); in afs_fs_fetch_acl()
2308 afs_make_call(&fc->ac, call, GFP_KERNEL); in afs_fs_fetch_acl()
2309 return (struct afs_acl *)afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_fetch_acl()
2348 int afs_fs_store_acl(struct afs_fs_cursor *fc, const struct afs_acl *acl, in afs_fs_store_acl() argument
2351 struct afs_vnode *vnode = fc->vnode; in afs_fs_store_acl()
2358 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_store_acl()
2364 fc->ac.error = -ENOMEM; in afs_fs_store_acl()
2368 call->key = fc->key; in afs_fs_store_acl()
2384 afs_make_call(&fc->ac, call, GFP_KERNEL); in afs_fs_store_acl()
2385 return afs_wait_for_call_to_complete(call, &fc->ac); in afs_fs_store_acl()