diff options
author | Thierry Strudel <tstrudel@google.com> | 2016-05-20 13:35:40 -0700 |
---|---|---|
committer | Thierry Strudel <tstrudel@google.com> | 2016-05-20 20:40:11 +0000 |
commit | ef93fe99eb0b58ba1e4e8ab6fcb7be42a77a6db1 (patch) | |
tree | 62621a6e7597290a268abafcdeba291ae348da03 | |
parent | 30b649841473a0678237e6da2362ca2b99265d5e (diff) | |
download | msm-android-msm-bullhead-3.10-n-preview-4.tar.gz |
Revert "REVERT ME: dma-buf: Add more info to debugfs hooks."android-n-preview-4_r0.7android-msm-bullhead-3.10-n-preview-4
This reverts commit 6bd877ac64b4dc13c479744dab836df635d55cbf.
Bug: 28883497
Signed-off-by: Thierry Strudel <tstrudel@google.com>
-rw-r--r-- | drivers/base/dma-buf.c | 60 | ||||
-rw-r--r-- | fs/ext4/inode.c | 2 |
2 files changed, 13 insertions, 49 deletions
diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index b46213074c1e..08fe897c0b4c 100644 --- a/drivers/base/dma-buf.c +++ b/drivers/base/dma-buf.c @@ -29,8 +29,6 @@ #include <linux/export.h> #include <linux/debugfs.h> #include <linux/seq_file.h> -#include <linux/file.h> -#include <linux/fdtable.h> static inline int is_dma_buf_file(struct file *); @@ -573,37 +571,6 @@ void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr) EXPORT_SYMBOL_GPL(dma_buf_vunmap); #ifdef CONFIG_DEBUG_FS -static void dma_buf_print_fds_slow(struct dma_buf *buf_obj, - struct seq_file *s) -{ - struct task_struct *tsk; - struct files_struct *files; - struct file *file; - int fd; - int num = 0; - - rcu_read_lock(); - for_each_process(tsk) { - files = get_files_struct(tsk); - - if (!files) - continue; - - for (fd = 0; fd < files_fdtable(files)->max_fds; fd++) { - file = fcheck_files(files, fd); - if (file && (file == buf_obj->file)) { - if (num == 0) - seq_printf(s, "\tfds:\n"); - seq_printf(s, "\tproc:%u fd: %d\n", (unsigned)task_pid_nr(tsk), fd); - num++; - } - - } - put_files_struct(files); - } - rcu_read_unlock(); -} - static int dma_buf_describe(struct seq_file *s) { int ret; @@ -618,8 +585,7 @@ static int dma_buf_describe(struct seq_file *s) return ret; seq_printf(s, "\nDma-buf Objects:\n"); - seq_printf(s, "%-40s %-10s %-5s %-5s %-5s\n", - "exp_name", "size", "flags", "mode", "count"); + seq_printf(s, "\texp_name\tsize\tflags\tmode\tcount\n"); list_for_each_entry(buf_obj, &db_list.head, list_node) { ret = mutex_lock_interruptible(&buf_obj->lock); @@ -630,29 +596,29 @@ static int dma_buf_describe(struct seq_file *s) continue; } - seq_printf(s, "%-40.40s %-10zu %-5x %-5x %-5ld\n", + seq_printf(s, "\t"); + + seq_printf(s, "\t%s\t%08zu\t%08x\t%08x\t%08ld\n", buf_obj->exp_name, buf_obj->size, buf_obj->file->f_flags, buf_obj->file->f_mode, (long)(buf_obj->file->f_count.counter)); - if (!list_empty(&buf_obj->attachments)) { - seq_printf(s, "\tattached devices:\n"); - attach_count = 0; + seq_printf(s, "\t\tAttached Devices:\n"); + attach_count = 0; - list_for_each_entry(attach_obj, &buf_obj->attachments, node) { - seq_printf(s, "\t%s\n", dev_name(attach_obj->dev)); - attach_count++; - } + list_for_each_entry(attach_obj, &buf_obj->attachments, node) { + seq_printf(s, "\t\t"); - seq_printf(s, "\n\tTotal %d devices attached\n", - attach_count); + seq_printf(s, "%s\n", attach_obj->dev->init_name); + attach_count++; } + seq_printf(s, "\n\t\tTotal %d devices attached\n", + attach_count); + count++; size += buf_obj->size; - dma_buf_print_fds_slow(buf_obj, s); mutex_unlock(&buf_obj->lock); - } seq_printf(s, "\nTotal %d objects, %zu bytes\n", count, size); diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 210ea71a57d4..589d6d3134e0 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2936,8 +2936,6 @@ ext4_readpages(struct file *file, struct address_space *mapping, { struct inode *inode = mapping->host; - trace_ext4_readpage(NULL); - /* If the file has inline data, no need to do readpages. */ if (ext4_has_inline_data(inode)) return 0; |