Lines Matching defs:int

53 static int nfs_opendir(struct inode *, struct file *);
54 static int nfs_closedir(struct inode *, struct file *);
55 static int nfs_readdir(struct file *, struct dir_context *);
56 static int nfs_fsync_dir(struct file *, loff_t, loff_t, int);
57 static loff_t nfs_llseek_dir(struct file *, loff_t, int);
110 static int
113 int res = 0;
130 static int
141 unsigned int name_len;
148 unsigned int size;
170 unsigned int cache_entry_index;
171 unsigned int buffer_fills;
172 unsigned int dtsize;
179 static void nfs_set_dtsize(struct nfs_readdir_descriptor *desc, unsigned int sz)
182 unsigned int maxsize = server->dtsize;
222 unsigned int i;
276 static const char *nfs_readdir_copy_name(const char *name, unsigned int len)
298 static int nfs_readdir_array_can_expand(struct nfs_cache_array *array)
309 static int nfs_readdir_folio_array_append(struct folio *folio,
316 int ret = -ENOMEM;
370 int ret = true;
460 int is_32bit_api(void)
497 static int nfs_readdir_search_for_pos(struct nfs_cache_array *array,
501 unsigned int index;
512 index = (unsigned int)diff;
534 static int nfs_readdir_search_for_cookie(struct nfs_cache_array *array,
537 unsigned int i;
538 int status = -EAGAIN;
563 static int nfs_readdir_search_array(struct nfs_readdir_descriptor *desc)
566 int status;
580 static int nfs_readdir_xdr_filler(struct nfs_readdir_descriptor *desc,
599 int error;
621 static int xdr_decode(struct nfs_readdir_descriptor *desc,
625 int error;
639 int nfs_same_file(struct dentry *dentry, struct nfs_entry *entry)
662 unsigned int cache_hits,
663 unsigned int cache_misses)
712 unsigned int flags)
730 int status;
803 static int nfs_readdir_entry_decode(struct nfs_readdir_descriptor *desc,
807 int ret;
819 static int nfs_readdir_folio_filler(struct nfs_readdir_descriptor *desc,
821 struct page **xdr_pages, unsigned int buflen,
831 int status;
926 static int nfs_readdir_xdr_to_array(struct nfs_readdir_descriptor *desc,
936 unsigned int dtsize = desc->dtsize;
937 unsigned int pglen;
938 int status = -ENOMEM;
1011 static int find_and_lock_cache_page(struct nfs_readdir_descriptor *desc)
1016 int res;
1065 static int readdir_search_pagecache(struct nfs_readdir_descriptor *desc)
1067 int res;
1085 unsigned int i;
1142 static int uncached_readdir(struct nfs_readdir_descriptor *desc)
1147 int status = -ENOMEM;
1204 unsigned int cache_misses,
1219 static int nfs_readdir(struct file *file, struct dir_context *ctx)
1226 unsigned int cache_hits, cache_misses;
1228 int res;
1322 static loff_t nfs_llseek_dir(struct file *filp, loff_t offset, int whence)
1367 static int nfs_fsync_dir(struct file *filp, loff_t start, loff_t end,
1368 int datasync)
1490 static int nfs_dentry_verify_change(struct inode *dir, struct dentry *dentry)
1504 static int nfs_check_verifier(struct inode *dir, struct dentry *dentry,
1505 int rcu_walk)
1529 static int nfs_is_exclusive_create(struct inode *dir, unsigned int flags)
1545 int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags)
1548 int ret;
1608 int nfs_neg_need_reval(struct inode *dir, struct dentry *dentry,
1609 unsigned int flags)
1621 static int
1623 struct inode *inode, int error)
1643 static int
1645 unsigned int flags)
1647 int ret = 1;
1656 static int
1664 static int nfs_lookup_revalidate_dentry(struct inode *dir,
1666 struct inode *inode, unsigned int flags)
1671 int ret;
1733 static int
1735 unsigned int flags)
1738 int error;
1786 static int
1787 __nfs_lookup_revalidate(struct dentry *dentry, unsigned int flags,
1788 int (*reval)(struct inode *, struct dentry *, unsigned int))
1792 int ret;
1815 static int nfs_lookup_revalidate(struct dentry *dentry, unsigned int flags)
1829 static int nfs_weak_revalidate(struct dentry *dentry, unsigned int flags)
1832 int error = 0;
1860 static int nfs_dentry_delete(const struct dentry *dentry)
1930 struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
1937 int error;
2003 static int nfs4_lookup_revalidate(struct dentry *, unsigned int);
2015 static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, struct file *filp)
2020 static int do_open(struct inode *inode, struct file *filp)
2026 static int nfs_finish_open(struct nfs_open_context *ctx,
2030 int err;
2043 int nfs_atomic_open(struct inode *dir, struct dentry *dentry,
2052 unsigned int lookup_flags = 0;
2055 int created = 0;
2056 int err;
2191 static int
2193 unsigned int flags)
2236 static int nfs4_lookup_revalidate(struct dentry *dentry, unsigned int flags)
2252 int error;
2283 int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fhandle,
2304 int nfs_create(struct mnt_idmap *idmap, struct inode *dir,
2308 int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT;
2309 int error;
2332 int
2337 int status;
2360 int nfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
2364 int error;
2391 struct dentry *dentry, int error)
2405 int nfs_rmdir(struct inode *dir, struct dentry *dentry)
2407 int error;
2441 static int nfs_safe_remove(struct dentry *dentry)
2445 int error = -EBUSY;
2474 int nfs_unlink(struct inode *dir, struct dentry *dentry)
2476 int error;
2532 int nfs_symlink(struct mnt_idmap *idmap, struct inode *dir,
2538 unsigned int pathlen = strlen(symname);
2539 int error;
2593 int
2597 int error;
2650 int nfs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
2652 struct dentry *new_dentry, unsigned int flags)
2659 int error = -EBUSY;
2693 int err;
2798 nfs_do_access_cache_scan(unsigned int nr_to_scan)
2840 int nr_to_scan = sc->nr_to_scan;
2860 unsigned int nr_to_scan;
2905 static int access_cmp(const struct cred *a, const struct nfs_access_entry *b)
2908 int g;
2949 int cmp = access_cmp(cred, entry);
2981 static int nfs_access_get_cached_locked(struct inode *inode, const struct cred *cred, u32 *mask, bool may_block)
2987 int err;
3027 static int nfs_access_get_cached_rcu(struct inode *inode, const struct cred *cred, u32 *mask)
3035 int err = -ECHILD;
3059 int nfs_access_get_cached(struct inode *inode, const struct cred *cred,
3062 int status;
3082 int cmp;
3156 static int
3159 int mask = 0;
3184 static int nfs_do_access(struct inode *inode, const struct cred *cred, int mask)
3188 int cache_mask = -1;
3189 int status;
3230 static int nfs_open_permission_mask(int openflags)
3232 int mask = 0;
3247 int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags)
3253 static int nfs_execute_ok(struct inode *inode, int mask)
3256 int ret = 0;
3270 int nfs_permission(struct mnt_idmap *idmap,
3272 int mask)
3275 int res = 0;