• Home
  • Raw
  • Download

Lines Matching refs:buf

62 static ssize_t session_write_kbytes_show(struct ext4_sb_info *sbi, char *buf)  in session_write_kbytes_show()  argument
67 return snprintf(buf, PAGE_SIZE, "0\n"); in session_write_kbytes_show()
68 return snprintf(buf, PAGE_SIZE, "%lu\n", in session_write_kbytes_show()
74 static ssize_t lifetime_write_kbytes_show(struct ext4_sb_info *sbi, char *buf) in lifetime_write_kbytes_show() argument
79 return snprintf(buf, PAGE_SIZE, "0\n"); in lifetime_write_kbytes_show()
80 return snprintf(buf, PAGE_SIZE, "%llu\n", in lifetime_write_kbytes_show()
88 const char *buf, size_t count) in inode_readahead_blks_store() argument
93 ret = kstrtoul(skip_spaces(buf), 0, &t); in inode_readahead_blks_store()
105 const char *buf, size_t count) in reserved_clusters_store() argument
112 ret = kstrtoull(skip_spaces(buf), 0, &val); in reserved_clusters_store()
121 const char *buf, size_t count) in trigger_test_error() argument
128 if (len && buf[len-1] == '\n') in trigger_test_error()
132 ext4_error(sbi->s_sb, "%.*s", len, buf); in trigger_test_error()
136 static ssize_t journal_task_show(struct ext4_sb_info *sbi, char *buf) in journal_task_show() argument
139 return snprintf(buf, PAGE_SIZE, "<none>\n"); in journal_task_show()
140 return snprintf(buf, PAGE_SIZE, "%d\n", in journal_task_show()
356 static ssize_t __print_tstamp(char *buf, __le32 lo, __u8 hi) in __print_tstamp() argument
358 return snprintf(buf, PAGE_SIZE, "%lld\n", in __print_tstamp()
362 #define print_tstamp(buf, es, tstamp) \ argument
363 __print_tstamp(buf, (es)->tstamp, (es)->tstamp ## _hi)
366 struct attribute *attr, char *buf) in ext4_attr_show() argument
375 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
379 return session_write_kbytes_show(sbi, buf); in ext4_attr_show()
381 return lifetime_write_kbytes_show(sbi, buf); in ext4_attr_show()
383 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
387 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
395 return snprintf(buf, PAGE_SIZE, "%u\n", in ext4_attr_show()
398 return snprintf(buf, PAGE_SIZE, "%u\n", in ext4_attr_show()
403 return snprintf(buf, PAGE_SIZE, "%lu\n", in ext4_attr_show()
408 return snprintf(buf, PAGE_SIZE, "%u\n", in ext4_attr_show()
414 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
417 return snprintf(buf, PAGE_SIZE, "%llu\n", in ext4_attr_show()
422 return snprintf(buf, PAGE_SIZE, "%.*s\n", a->attr_size, in ext4_attr_show()
427 return snprintf(buf, PAGE_SIZE, "%d\n", in ext4_attr_show()
430 return snprintf(buf, PAGE_SIZE, "supported\n"); in ext4_attr_show()
432 return print_tstamp(buf, sbi->s_es, s_first_error_time); in ext4_attr_show()
434 return print_tstamp(buf, sbi->s_es, s_last_error_time); in ext4_attr_show()
436 return journal_task_show(sbi, buf); in ext4_attr_show()
444 const char *buf, size_t len) in ext4_attr_store() argument
455 return reserved_clusters_store(sbi, buf, len); in ext4_attr_store()
459 ret = kstrtoul(skip_spaces(buf), 0, &t); in ext4_attr_store()
470 ret = kstrtoul(skip_spaces(buf), 0, &t); in ext4_attr_store()
476 return inode_readahead_blks_store(sbi, buf, len); in ext4_attr_store()
478 return trigger_test_error(sbi, buf, len); in ext4_attr_store()