/fs/ |
D | statfs.c | 49 static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf) in statfs_by_dentry() argument 56 memset(buf, 0, sizeof(*buf)); in statfs_by_dentry() 60 retval = dentry->d_sb->s_op->statfs(dentry, buf); in statfs_by_dentry() 61 if (retval == 0 && buf->f_frsize == 0) in statfs_by_dentry() 62 buf->f_frsize = buf->f_bsize; in statfs_by_dentry() 66 int vfs_statfs(struct path *path, struct kstatfs *buf) in vfs_statfs() argument 70 error = statfs_by_dentry(path->dentry, buf); in vfs_statfs() 72 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs() 108 struct statfs buf; in do_statfs_native() local 110 if (sizeof(buf) == sizeof(*st)) in do_statfs_native() [all …]
|
D | readdir.c | 80 struct readdir_callback *buf = (struct readdir_callback *) __buf; in fillonedir() local 84 if (buf->result) in fillonedir() 88 buf->result = -EOVERFLOW; in fillonedir() 91 buf->result++; in fillonedir() 92 dirent = buf->dirent; in fillonedir() 105 buf->result = -EFAULT; in fillonedir() 114 struct readdir_callback buf = { in SYSCALL_DEFINE3() local 122 error = iterate_dir(f.file, &buf.ctx); in SYSCALL_DEFINE3() 123 if (buf.result) in SYSCALL_DEFINE3() 124 error = buf.result; in SYSCALL_DEFINE3() [all …]
|
D | seq_file.c | 37 void *buf; in seq_buf_alloc() local 39 buf = kmalloc(size, GFP_KERNEL | __GFP_NOWARN); in seq_buf_alloc() 40 if (!buf && size > PAGE_SIZE) in seq_buf_alloc() 41 buf = vmalloc(size); in seq_buf_alloc() 42 return buf; in seq_buf_alloc() 110 if (!m->buf) { in traverse() 111 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse() 112 if (!m->buf) in traverse() 150 kvfree(m->buf); in traverse() 152 m->buf = seq_buf_alloc(m->size <<= 1); in traverse() [all …]
|
D | pipe.c | 126 struct pipe_buffer *buf) in anon_pipe_buf_release() argument 128 struct page *page = buf->page; in anon_pipe_buf_release() 154 struct pipe_buffer *buf) in generic_pipe_buf_steal() argument 156 struct page *page = buf->page; in generic_pipe_buf_steal() 182 void generic_pipe_buf_get(struct pipe_inode_info *pipe, struct pipe_buffer *buf) in generic_pipe_buf_get() argument 184 page_cache_get(buf->page); in generic_pipe_buf_get() 198 struct pipe_buffer *buf) in generic_pipe_buf_confirm() argument 213 struct pipe_buffer *buf) in generic_pipe_buf_release() argument 215 page_cache_release(buf->page); in generic_pipe_buf_release() 255 struct pipe_buffer *buf = pipe->bufs + curbuf; in pipe_read() local [all …]
|
D | splice.c | 45 struct pipe_buffer *buf) in page_cache_pipe_buf_steal() argument 47 struct page *page = buf->page; in page_cache_pipe_buf_steal() 75 buf->flags |= PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_steal() 90 struct pipe_buffer *buf) in page_cache_pipe_buf_release() argument 92 page_cache_release(buf->page); in page_cache_pipe_buf_release() 93 buf->flags &= ~PIPE_BUF_FLAG_LRU; in page_cache_pipe_buf_release() 101 struct pipe_buffer *buf) in page_cache_pipe_buf_confirm() argument 103 struct page *page = buf->page; in page_cache_pipe_buf_confirm() 147 struct pipe_buffer *buf) in user_page_pipe_buf_steal() argument 149 if (!(buf->flags & PIPE_BUF_FLAG_GIFT)) in user_page_pipe_buf_steal() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmdebug.c | 47 static int stringify_lockname(const char *lockname, int locklen, char *buf, 100 char buf[DLM_LOCKID_NAME_MAX]; in __dlm_print_one_lock_resource() local 105 buf, sizeof(buf)); in __dlm_print_one_lock_resource() 107 buf, res->owner, res->state); in __dlm_print_one_lock_resource() 251 static int stringify_lockname(const char *lockname, int locklen, char *buf, in stringify_lockname() argument 262 out += snprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname() 266 out += snprintf(buf + out, len - out, "%.*s", in stringify_lockname() 272 char *buf, int len) in stringify_nodemap() argument 278 out += snprintf(buf + out, len - out, "%d ", i); in stringify_nodemap() 283 static int dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) in dump_mle() argument [all …]
|
/fs/nilfs2/ |
D | sysfs.c | 31 #define NILFS_SHOW_TIME(time_t_val, buf) ({ \ argument 37 count = scnprintf(buf, PAGE_SIZE, \ 46 struct attribute *attr, char *buf) \ 54 return a->show ? a->show(a, nilfs, buf) : 0; \ 58 const char *buf, size_t len) \ 66 return a->store ? a->store(a, nilfs, buf, len) : 0; \ 120 struct nilfs_root *root, char *buf) in nilfs_snapshot_inodes_count_show() argument 122 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_inodes_count_show() 128 struct nilfs_root *root, char *buf) in nilfs_snapshot_blocks_count_show() argument 130 return snprintf(buf, PAGE_SIZE, "%llu\n", in nilfs_snapshot_blocks_count_show() [all …]
|
/fs/nfsd/ |
D | nfsctl.c | 59 static ssize_t write_filehandle(struct file *file, char *buf, size_t size); 60 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size); 61 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size); 62 static ssize_t write_threads(struct file *file, char *buf, size_t size); 63 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size); 64 static ssize_t write_versions(struct file *file, char *buf, size_t size); 65 static ssize_t write_ports(struct file *file, char *buf, size_t size); 66 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size); 67 static ssize_t write_maxconn(struct file *file, char *buf, size_t size); 69 static ssize_t write_leasetime(struct file *file, char *buf, size_t size); [all …]
|
/fs/squashfs/ |
D | xz_wrapper.c | 39 struct xz_buf buf; member 139 void *buf = NULL; in squashfs_xz_uncompress() local 142 stream->buf.in_pos = 0; in squashfs_xz_uncompress() 143 stream->buf.in_size = 0; in squashfs_xz_uncompress() 144 stream->buf.out_pos = 0; in squashfs_xz_uncompress() 145 stream->buf.out_size = PAGE_SIZE; in squashfs_xz_uncompress() 146 stream->buf.out = squashfs_first_page(output); in squashfs_xz_uncompress() 149 if (stream->buf.in_pos == stream->buf.in_size && k < b) { in squashfs_xz_uncompress() 152 stream->buf.in = bh[k]->b_data + offset; in squashfs_xz_uncompress() 153 stream->buf.in_size = avail; in squashfs_xz_uncompress() [all …]
|
/fs/quota/ |
D | quota_tree.c | 45 char *buf = kmalloc(size, GFP_NOFS); in getdqbuf() local 46 if (!buf) in getdqbuf() 49 return buf; in getdqbuf() 52 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 56 memset(buf, 0, info->dqi_usable_bs); in read_blk() 57 return sb->s_op->quota_read(sb, info->dqi_type, buf, in read_blk() 61 static ssize_t write_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in write_blk() argument 66 ret = sb->s_op->quota_write(sb, info->dqi_type, buf, in write_blk() 79 char *buf = getdqbuf(info->dqi_usable_bs); in get_free_dqblk() local 80 struct qt_disk_dqdbheader *dh = (struct qt_disk_dqdbheader *)buf; in get_free_dqblk() [all …]
|
/fs/ext3/ |
D | hash.c | 17 static void TEA_transform(__u32 buf[4], __u32 const in[]) in TEA_transform() 20 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 30 buf[0] += b0; in TEA_transform() 31 buf[1] += b1; in TEA_transform() 68 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument 85 *buf++ = val; in str2hashbuf_signed() 91 *buf++ = val; in str2hashbuf_signed() 93 *buf++ = pad; in str2hashbuf_signed() 96 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument 113 *buf++ = val; in str2hashbuf_unsigned() [all …]
|
/fs/ext4/ |
D | hash.c | 19 static void TEA_transform(__u32 buf[4], __u32 const in[]) in TEA_transform() 22 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 32 buf[0] += b0; in TEA_transform() 33 buf[1] += b1; in TEA_transform() 70 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument 87 *buf++ = val; in str2hashbuf_signed() 93 *buf++ = val; in str2hashbuf_signed() 95 *buf++ = pad; in str2hashbuf_signed() 98 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument 115 *buf++ = val; in str2hashbuf_unsigned() [all …]
|
/fs/gfs2/ |
D | sys.c | 39 char *buf) in gfs2_attr_show() argument 43 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show() 47 const char *buf, size_t len) in gfs2_attr_store() argument 51 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store() 62 static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) in id_show() argument 64 return snprintf(buf, PAGE_SIZE, "%u:%u\n", in id_show() 68 static ssize_t fsname_show(struct gfs2_sbd *sdp, char *buf) in fsname_show() argument 70 return snprintf(buf, PAGE_SIZE, "%s\n", sdp->sd_fsname); in fsname_show() 84 static ssize_t uuid_show(struct gfs2_sbd *sdp, char *buf) in uuid_show() argument 88 buf[0] = '\0'; in uuid_show() [all …]
|
/fs/hostfs/ |
D | hostfs_user.c | 21 static void stat64_to_hostfs(const struct stat64 *buf, struct hostfs_stat *p) in stat64_to_hostfs() argument 23 p->ino = buf->st_ino; in stat64_to_hostfs() 24 p->mode = buf->st_mode; in stat64_to_hostfs() 25 p->nlink = buf->st_nlink; in stat64_to_hostfs() 26 p->uid = buf->st_uid; in stat64_to_hostfs() 27 p->gid = buf->st_gid; in stat64_to_hostfs() 28 p->size = buf->st_size; in stat64_to_hostfs() 29 p->atime.tv_sec = buf->st_atime; in stat64_to_hostfs() 31 p->ctime.tv_sec = buf->st_ctime; in stat64_to_hostfs() 33 p->mtime.tv_sec = buf->st_mtime; in stat64_to_hostfs() [all …]
|
/fs/f2fs/ |
D | hash.c | 28 static void TEA_transform(unsigned int buf[4], unsigned int const in[]) in TEA_transform() 31 __u32 b0 = buf[0], b1 = buf[1]; in TEA_transform() 41 buf[0] += b0; in TEA_transform() 42 buf[1] += b1; in TEA_transform() 46 unsigned int *buf, int num) in str2hashbuf() argument 62 *buf++ = val; in str2hashbuf() 68 *buf++ = val; in str2hashbuf() 70 *buf++ = pad; in str2hashbuf() 79 __u32 in[8], buf[4]; in f2fs_dentry_hash() local 91 buf[0] = 0x67452301; in f2fs_dentry_hash() [all …]
|
/fs/xfs/ |
D | xfs_sysfs.c | 27 ssize_t (*show)(char *buf, void *data); 28 ssize_t (*store)(const char *buf, size_t count, void *data); 59 const char *buf, in log_recovery_delay_store() argument 66 ret = kstrtoint(buf, 0, &val); in log_recovery_delay_store() 80 char *buf, in log_recovery_delay_show() argument 83 return snprintf(buf, PAGE_SIZE, "%d\n", xfs_globals.log_recovery_delay); in log_recovery_delay_show() 96 char *buf) in xfs_dbg_show() argument 100 return xfs_attr->show ? xfs_attr->show(buf, NULL) : 0; in xfs_dbg_show() 107 const char *buf, in xfs_dbg_store() argument 112 return xfs_attr->store ? xfs_attr->store(buf, count, NULL) : 0; in xfs_dbg_store() [all …]
|
D | xfs_itable.c | 64 struct xfs_bstat *buf; /* return buffer */ in xfs_bulkstat_one_int() local 72 buf = kmem_alloc(sizeof(*buf), KM_SLEEP | KM_MAYFAIL); in xfs_bulkstat_one_int() 73 if (!buf) in xfs_bulkstat_one_int() 90 buf->bs_nlink = dic->di_nlink; in xfs_bulkstat_one_int() 91 buf->bs_projid_lo = dic->di_projid_lo; in xfs_bulkstat_one_int() 92 buf->bs_projid_hi = dic->di_projid_hi; in xfs_bulkstat_one_int() 93 buf->bs_ino = ino; in xfs_bulkstat_one_int() 94 buf->bs_mode = dic->di_mode; in xfs_bulkstat_one_int() 95 buf->bs_uid = dic->di_uid; in xfs_bulkstat_one_int() 96 buf->bs_gid = dic->di_gid; in xfs_bulkstat_one_int() [all …]
|
/fs/ubifs/ |
D | scan.c | 40 static int scan_padding_bytes(void *buf, int len) in scan_padding_bytes() argument 43 uint8_t *p = buf; in scan_padding_bytes() 69 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() argument 72 struct ubifs_ch *ch = buf; in ubifs_scan_a_node() 83 return scan_padding_bytes(buf, len); in ubifs_scan_a_node() 91 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 95 struct ubifs_pad_node *pad = buf; in ubifs_scan_a_node() 151 sleb->buf = sbuf; in ubifs_start_scan() 195 void *buf, int offs) in ubifs_add_snod() argument 197 struct ubifs_ch *ch = buf; in ubifs_add_snod() [all …]
|
D | recovery.c | 62 static int is_empty(void *buf, int len) in is_empty() argument 64 uint8_t *p = buf; in is_empty() 81 static int first_non_ff(void *buf, int len) in first_non_ff() argument 83 uint8_t *p = buf; in first_non_ff() 114 void *sbuf, *buf; in get_master_node() local 126 buf = sbuf; in get_master_node() 129 struct ubifs_ch *ch = buf; in get_master_node() 134 buf += sz; in get_master_node() 142 buf -= sz; in get_master_node() 144 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() [all …]
|
D | io.c | 99 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 104 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 117 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument 126 err = ubi_leb_write(c->ubi, lnum, buf, offs, len); in ubifs_leb_write() 128 err = dbg_leb_write(c, lnum, buf, offs, len); in ubifs_leb_write() 138 int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) in ubifs_leb_change() argument 146 err = ubi_leb_change(c->ubi, lnum, buf, len); in ubifs_leb_change() 148 err = dbg_leb_change(c, lnum, buf, len); in ubifs_leb_change() 237 int ubifs_check_node(const struct ubifs_info *c, const void *buf, int lnum, in ubifs_check_node() argument 242 const struct ubifs_ch *ch = buf; in ubifs_check_node() [all …]
|
/fs/romfs/ |
D | storage.c | 28 void *buf, size_t buflen) in romfs_mtd_read() argument 33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read() 45 u_char buf[16], *p; in romfs_mtd_strnlen() local 52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen() 55 p = memchr(buf, 0, len); in romfs_mtd_strnlen() 57 return n + (p - buf); in romfs_mtd_strnlen() 73 u_char buf[17]; in romfs_mtd_strcmp() local 79 buf[0] = 0xff; in romfs_mtd_strcmp() 83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp() 87 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp() [all …]
|
/fs/dlm/ |
D | config.c | 65 char *buf); 68 const char *buf, size_t len); 70 char *buf); 72 const char *buf, size_t len); 74 char *buf); 76 const char *buf, size_t len); 78 static ssize_t comm_nodeid_read(struct dlm_comm *cm, char *buf); 79 static ssize_t comm_nodeid_write(struct dlm_comm *cm, const char *buf, 81 static ssize_t comm_local_read(struct dlm_comm *cm, char *buf); 82 static ssize_t comm_local_write(struct dlm_comm *cm, const char *buf, [all …]
|
/fs/cifs/ |
D | smb2file.c | 39 __u32 *oplock, FILE_ALL_INFO *buf) in smb2_open_file() argument 70 if (buf) { in smb2_open_file() 80 move_smb2_info_to_cifs(buf, smb2_data); in smb2_open_file() 96 struct smb2_lock_element *buf, *cur; in smb2_unlock_range() local 114 buf = kzalloc(max_num * sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_unlock_range() 115 if (!buf) in smb2_unlock_range() 118 cur = buf; in smb2_unlock_range() 150 current->tgid, num, buf); in smb2_unlock_range() 166 cur = buf; in smb2_unlock_range() 174 num, buf); in smb2_unlock_range() [all …]
|
/fs/ncpfs/ |
D | ncpsign_kernel.c | 23 #define BVAL(buf,pos) (((const __u8 *)(buf))[pos]) argument 24 #define PVAL(buf,pos) ((unsigned)BVAL(buf,pos)) argument 25 #define BSET(buf,pos,val) (((__u8 *)(buf))[pos] = (val)) argument 28 WVAL_LH(const __u8 * buf, int pos) in WVAL_LH() argument 30 return PVAL(buf, pos) | PVAL(buf, pos + 1) << 8; in WVAL_LH() 33 DVAL_LH(const __u8 * buf, int pos) in DVAL_LH() argument 35 return WVAL_LH(buf, pos) | WVAL_LH(buf, pos + 2) << 16; in DVAL_LH() 38 WSET_LH(__u8 * buf, int pos, __u16 val) in WSET_LH() argument 40 BSET(buf, pos, val & 0xff); in WSET_LH() 41 BSET(buf, pos + 1, val >> 8); in WSET_LH() [all …]
|
/fs/btrfs/ |
D | lzo.c | 34 void *buf; /* where decompressed data goes */ member 43 vfree(workspace->buf); in lzo_free_workspace() 58 workspace->buf = vmalloc(lzo1x_worst_compress(PAGE_CACHE_SIZE)); in lzo_alloc_workspace() 60 if (!workspace->mem || !workspace->buf || !workspace->cbuf) in lzo_alloc_workspace() 71 static inline void write_compress_length(char *buf, size_t len) in write_compress_length() argument 76 memcpy(buf, &dlen, LZO_LEN); in write_compress_length() 79 static inline size_t read_compress_length(char *buf) in read_compress_length() argument 83 memcpy(&dlen, buf, LZO_LEN); in read_compress_length() 108 char *buf; in lzo_compress_pages() local 160 buf = workspace->cbuf; in lzo_compress_pages() [all …]
|