• Home
  • Raw
  • Download

Lines Matching refs:s

676 static void *jbd2_history_skip_empty(struct jbd2_stats_proc_session *s,  in jbd2_history_skip_empty()  argument
680 if (ts == s->stats + s->max) in jbd2_history_skip_empty()
681 ts = s->stats; in jbd2_history_skip_empty()
682 if (!first && ts == s->stats + s->start) in jbd2_history_skip_empty()
686 if (ts == s->stats + s->max) in jbd2_history_skip_empty()
687 ts = s->stats; in jbd2_history_skip_empty()
688 if (ts == s->stats + s->start) in jbd2_history_skip_empty()
697 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_history_start() local
703 ts = jbd2_history_skip_empty(s, s->stats + s->start, 1); in jbd2_seq_history_start()
708 ts = jbd2_history_skip_empty(s, ++ts, 0); in jbd2_seq_history_start()
718 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_history_next() local
723 return jbd2_history_skip_empty(s, s->stats + s->start, 1); in jbd2_seq_history_next()
725 return jbd2_history_skip_empty(s, ++ts, 0); in jbd2_seq_history_next()
775 struct jbd2_stats_proc_session *s; in jbd2_seq_history_open() local
778 s = kmalloc(sizeof(*s), GFP_KERNEL); in jbd2_seq_history_open()
779 if (s == NULL) in jbd2_seq_history_open()
782 s->stats = kmalloc(size, GFP_KERNEL); in jbd2_seq_history_open()
783 if (s->stats == NULL) { in jbd2_seq_history_open()
784 kfree(s); in jbd2_seq_history_open()
788 memcpy(s->stats, journal->j_history, size); in jbd2_seq_history_open()
789 s->max = journal->j_history_max; in jbd2_seq_history_open()
790 s->start = journal->j_history_cur % s->max; in jbd2_seq_history_open()
796 m->private = s; in jbd2_seq_history_open()
798 kfree(s->stats); in jbd2_seq_history_open()
799 kfree(s); in jbd2_seq_history_open()
808 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_history_release() local
810 kfree(s->stats); in jbd2_seq_history_release()
811 kfree(s); in jbd2_seq_history_release()
835 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_info_show() local
840 s->stats->ts_tid, in jbd2_seq_info_show()
841 s->journal->j_max_transaction_buffers); in jbd2_seq_info_show()
842 if (s->stats->ts_tid == 0) in jbd2_seq_info_show()
845 jiffies_to_msecs(s->stats->u.run.rs_wait / s->stats->ts_tid)); in jbd2_seq_info_show()
847 jiffies_to_msecs(s->stats->u.run.rs_running / s->stats->ts_tid)); in jbd2_seq_info_show()
849 jiffies_to_msecs(s->stats->u.run.rs_locked / s->stats->ts_tid)); in jbd2_seq_info_show()
851 jiffies_to_msecs(s->stats->u.run.rs_flushing / s->stats->ts_tid)); in jbd2_seq_info_show()
853 jiffies_to_msecs(s->stats->u.run.rs_logging / s->stats->ts_tid)); in jbd2_seq_info_show()
855 div_u64(s->journal->j_average_commit_time, 1000)); in jbd2_seq_info_show()
857 s->stats->u.run.rs_handle_count / s->stats->ts_tid); in jbd2_seq_info_show()
859 s->stats->u.run.rs_blocks / s->stats->ts_tid); in jbd2_seq_info_show()
861 s->stats->u.run.rs_blocks_logged / s->stats->ts_tid); in jbd2_seq_info_show()
879 struct jbd2_stats_proc_session *s; in jbd2_seq_info_open() local
882 s = kmalloc(sizeof(*s), GFP_KERNEL); in jbd2_seq_info_open()
883 if (s == NULL) in jbd2_seq_info_open()
886 s->stats = kmalloc(size, GFP_KERNEL); in jbd2_seq_info_open()
887 if (s->stats == NULL) { in jbd2_seq_info_open()
888 kfree(s); in jbd2_seq_info_open()
892 memcpy(s->stats, &journal->j_stats, size); in jbd2_seq_info_open()
893 s->journal = journal; in jbd2_seq_info_open()
899 m->private = s; in jbd2_seq_info_open()
901 kfree(s->stats); in jbd2_seq_info_open()
902 kfree(s); in jbd2_seq_info_open()
911 struct jbd2_stats_proc_session *s = seq->private; in jbd2_seq_info_release() local
912 kfree(s->stats); in jbd2_seq_info_release()
913 kfree(s); in jbd2_seq_info_release()