Home
last modified time | relevance | path

Searched refs:st (Results 1 – 23 of 23) sorted by relevance

/fs/
Dstatfs.c77 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument
82 error = vfs_statfs(&path, st); in user_statfs()
88 int fd_statfs(int fd, struct kstatfs *st) in fd_statfs() argument
93 error = vfs_statfs(&file->f_path, st); in fd_statfs()
99 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) in do_statfs_native() argument
103 if (sizeof(buf) == sizeof(*st)) in do_statfs_native()
104 memcpy(&buf, st, sizeof(*st)); in do_statfs_native()
107 if ((st->f_blocks | st->f_bfree | st->f_bavail | in do_statfs_native()
108 st->f_bsize | st->f_frsize) & in do_statfs_native()
115 if (st->f_files != -1 && in do_statfs_native()
[all …]
/fs/udf/
Dpartition.c117 struct sparingTable *st = NULL; in udf_get_pblock_spar15() local
129 st = (struct sparingTable *) in udf_get_pblock_spar15()
135 if (st) { in udf_get_pblock_spar15()
136 for (i = 0; i < le16_to_cpu(st->reallocationTableLen); i++) { in udf_get_pblock_spar15()
137 struct sparingEntry *entry = &st->mapEntry[i]; in udf_get_pblock_spar15()
156 struct sparingTable *st = NULL; in udf_relocate_blocks() local
176 st = (struct sparingTable *) in udf_relocate_blocks()
181 if (!st) { in udf_relocate_blocks()
187 le16_to_cpu(st->reallocationTableLen); in udf_relocate_blocks()
189 struct sparingEntry *entry = &st->mapEntry[k]; in udf_relocate_blocks()
[all …]
Dsuper.c1225 struct sparingTable *st; in udf_load_sparable_map() local
1251 st = (struct sparingTable *)bh->b_data; in udf_load_sparable_map()
1253 strncmp(st->sparingIdent.ident, UDF_ID_SPARING, in udf_load_sparable_map()
1255 sizeof(*st) + le16_to_cpu(st->reallocationTableLen) > in udf_load_sparable_map()
/fs/9p/
Dvfs_super.c165 struct p9_stat_dotl *st = NULL; in v9fs_mount() local
166 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC); in v9fs_mount()
167 if (IS_ERR(st)) { in v9fs_mount()
168 retval = PTR_ERR(st); in v9fs_mount()
171 root->d_inode->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
172 v9fs_stat2inode_dotl(st, root->d_inode); in v9fs_mount()
173 kfree(st); in v9fs_mount()
175 struct p9_wstat *st = NULL; in v9fs_mount() local
176 st = p9_client_stat(fid); in v9fs_mount()
177 if (IS_ERR(st)) { in v9fs_mount()
[all …]
Dvfs_inode_dotl.c92 struct p9_stat_dotl *st = (struct p9_stat_dotl *)data; in v9fs_test_inode_dotl() local
95 if ((inode->i_mode & S_IFMT) != (st->st_mode & S_IFMT)) in v9fs_test_inode_dotl()
98 if (inode->i_generation != st->st_gen) in v9fs_test_inode_dotl()
103 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode_dotl()
106 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode_dotl()
120 struct p9_stat_dotl *st = (struct p9_stat_dotl *)data; in v9fs_set_inode_dotl() local
122 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode_dotl()
123 inode->i_generation = st->st_gen; in v9fs_set_inode_dotl()
130 struct p9_stat_dotl *st, in v9fs_qid_iget_dotl() argument
145 inode = iget5_locked(sb, i_ino, test, v9fs_set_inode_dotl, st); in v9fs_qid_iget_dotl()
[all …]
Dvfs_inode.c469 struct p9_wstat *st = (struct p9_wstat *)data; in v9fs_test_inode() local
472 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode()
479 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode()
482 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode()
495 struct p9_wstat *st = (struct p9_wstat *)data; in v9fs_set_inode() local
497 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode()
503 struct p9_wstat *st, in v9fs_qid_iget() argument
520 inode = iget5_locked(sb, i_ino, test, v9fs_set_inode, st); in v9fs_qid_iget()
531 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_qid_iget()
536 v9fs_stat2inode(st, inode, sb); in v9fs_qid_iget()
[all …]
Dvfs_dir.c136 struct p9_wstat st; in v9fs_dir_readdir() local
167 p9stat_init(&st); in v9fs_dir_readdir()
169 rdir->tail - rdir->head, &st); in v9fs_dir_readdir()
173 p9stat_free(&st); in v9fs_dir_readdir()
176 reclen = st.size+2; in v9fs_dir_readdir()
178 over = filldir(dirent, st.name, strlen(st.name), in v9fs_dir_readdir()
179 filp->f_pos, v9fs_qid2ino(&st.qid), dt_type(&st)); in v9fs_dir_readdir()
181 p9stat_free(&st); in v9fs_dir_readdir()
/fs/ocfs2/dlm/
Ddlmapi.h91 #define dlm_error(st) do { \ argument
92 if ((st) != DLM_RECOVERING && \
93 (st) != DLM_MIGRATING && \
94 (st) != DLM_FORWARD) \
95 mlog(ML_ERROR, "dlm status = %s\n", dlm_errname((st))); \
Ddlmrecovery.c93 static void dlm_reco_unlock_ast(void *astdata, enum dlm_status st);
266 char *st = "unknown"; in dlm_print_reco_node_status() local
269 st = "init"; in dlm_print_reco_node_status()
272 st = "requesting"; in dlm_print_reco_node_status()
275 st = "dead"; in dlm_print_reco_node_status()
278 st = "receiving"; in dlm_print_reco_node_status()
281 st = "requested"; in dlm_print_reco_node_status()
284 st = "done"; in dlm_print_reco_node_status()
287 st = "finalize-sent"; in dlm_print_reco_node_status()
290 st = "bad"; in dlm_print_reco_node_status()
[all …]
/fs/hostfs/
Dhostfs_user.c201 struct hostfs_stat st; in set_attr() local
245 err = stat_file(file, &st, fd); in set_attr()
249 times[0].tv_sec = st.atime.tv_sec; in set_attr()
250 times[0].tv_usec = st.atime.tv_nsec / 1000; in set_attr()
251 times[1].tv_sec = st.mtime.tv_sec; in set_attr()
252 times[1].tv_usec = st.mtime.tv_nsec / 1000; in set_attr()
273 err = stat_file(file, &st, fd); in set_attr()
274 attrs->ia_atime = st.atime; in set_attr()
275 attrs->ia_mtime = st.mtime; in set_attr()
Dhostfs_kern.c512 struct hostfs_stat st; in read_name() local
513 int err = stat_file(name, &st, -1); in read_name()
518 rdev = MKDEV(st.maj, st.min); in read_name()
520 switch (st.mode & S_IFMT) { in read_name()
532 init_special_inode(ino, st.mode & S_IFMT, rdev); in read_name()
542 ino->i_ino = st.ino; in read_name()
543 ino->i_mode = st.mode; in read_name()
544 set_nlink(ino, st.nlink); in read_name()
545 ino->i_uid = st.uid; in read_name()
546 ino->i_gid = st.gid; in read_name()
[all …]
/fs/yaffs2/
Dyaffs_summary.c179 struct yaffs_summary_tags *st, in yaffs_summary_read() argument
184 u8 *sum_buffer = (u8 *)st; in yaffs_summary_read()
220 if (st == dev->sum_tags) { in yaffs_summary_read()
244 if (st == dev->sum_tags && result == YAFFS_OK) in yaffs_summary_read()
Dyaffs_summary.h32 struct yaffs_summary_tags *st,
/fs/ocfs2/cluster/
Dmasklog.h199 #define mlog_errno(st) do { \ argument
200 int _st = (st); \
/fs/nfsd/
Dnfs3acl.c15 #define RETURN_STATUS(st) { resp->status = (st); return (st); } argument
Dnfs2acl.c16 #define RETURN_STATUS(st) { resp->status = (st); return (st); } argument
Dnfs3proc.c17 #define RETURN_STATUS(st) { resp->status = (st); return (st); } argument
/fs/ceph/
Dsuper.c58 struct ceph_statfs st; in ceph_statfs() local
63 err = ceph_monc_do_statfs(&fsc->client->monc, &st); in ceph_statfs()
81 buf->f_blocks = le64_to_cpu(st.kb) >> (CEPH_BLOCK_SHIFT-10); in ceph_statfs()
82 buf->f_bfree = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); in ceph_statfs()
83 buf->f_bavail = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10); in ceph_statfs()
85 buf->f_files = le64_to_cpu(st.num_objects); in ceph_statfs()
/fs/affs/
Daffs.h17 #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) argument
/fs/xfs/
Dxfs_bmap_btree.c102 xfs_exntst_t st; in __xfs_bmbt_get_all() local
128 st = XFS_EXT_UNWRITTEN; in __xfs_bmbt_get_all()
130 st = XFS_EXT_NORM; in __xfs_bmbt_get_all()
131 s->br_state = st; in __xfs_bmbt_get_all()
/fs/cifs/
Dnetmisc.c962 SMB_TIME *st = (SMB_TIME *)&time; in cnvrtDosUnixTm() local
967 sec = 2 * st->TwoSeconds; in cnvrtDosUnixTm()
968 min = st->Minutes; in cnvrtDosUnixTm()
972 sec += 60 * 60 * st->Hours; in cnvrtDosUnixTm()
973 if (st->Hours > 24) in cnvrtDosUnixTm()
974 cERROR(1, "illegal hours %d", st->Hours); in cnvrtDosUnixTm()
DCHANGES24 be allowed (rather than reusing the 1st port) - only when the
154 opened, read and written as if they were files). When 1st tree
/fs/fuse/
Dinode.c408 convert_fuse_statfs(buf, &outarg.st); in fuse_statfs()