diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-04 22:36:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-04 22:36:06 -0400 |
commit | 1dc51b8288007753ad7cd7d08bb8fa930fc8bb10 (patch) | |
tree | 0616c0ff7d877e64d9c248a6cdff074eae258840 /arch/arc/kernel/troubleshoot.c | |
parent | 9b284cbdb5de3b8871014f8290d1b540e5181c21 (diff) | |
parent | 0f1db7dee200127da4c07928189748918c312031 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs updates from Al Viro:
"Assorted VFS fixes and related cleanups (IMO the most interesting in
that part are f_path-related things and Eric's descriptor-related
stuff). UFS regression fixes (it got broken last cycle). 9P fixes.
fs-cache series, DAX patches, Jan's file_remove_suid() work"
[ I'd say this is much more than "fixes and related cleanups". The
file_table locking rule change by Eric Dumazet is a rather big and
fundamental update even if the patch isn't huge. - Linus ]
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (49 commits)
9p: cope with bogus responses from server in p9_client_{read,write}
p9_client_write(): avoid double p9_free_req()
9p: forgetting to cancel request on interrupted zero-copy RPC
dax: bdev_direct_access() may sleep
block: Add support for DAX reads/writes to block devices
dax: Use copy_from_iter_nocache
dax: Add block size note to documentation
fs/file.c: __fget() and dup2() atomicity rules
fs/file.c: don't acquire files->file_lock in fd_install()
fs:super:get_anon_bdev: fix race condition could cause dev exceed its upper limitation
vfs: avoid creation of inode number 0 in get_next_ino
namei: make set_root_rcu() return void
make simple_positive() public
ufs: use dir_pages instead of ufs_dir_pages()
pagemap.h: move dir_pages() over there
remove the pointless include of lglock.h
fs: cleanup slight list_entry abuse
xfs: Correctly lock inode when removing suid and file capabilities
fs: Call security_ops->inode_killpriv on truncate
fs: Provide function telling whether file_remove_privs() will do anything
...
Diffstat (limited to 'arch/arc/kernel/troubleshoot.c')
-rw-r--r-- | arch/arc/kernel/troubleshoot.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arc/kernel/troubleshoot.c b/arch/arc/kernel/troubleshoot.c index e0cf99893212..807f7d61d7a7 100644 --- a/arch/arc/kernel/troubleshoot.c +++ b/arch/arc/kernel/troubleshoot.c | |||
@@ -71,15 +71,12 @@ static void print_task_path_n_nm(struct task_struct *tsk, char *buf) | |||
71 | mmput(mm); | 71 | mmput(mm); |
72 | 72 | ||
73 | if (exe_file) { | 73 | if (exe_file) { |
74 | path = exe_file->f_path; | 74 | path_nm = file_path(exe_file, buf, 255); |
75 | path_get(&exe_file->f_path); | ||
76 | fput(exe_file); | 75 | fput(exe_file); |
77 | path_nm = d_path(&path, buf, 255); | ||
78 | path_put(&path); | ||
79 | } | 76 | } |
80 | 77 | ||
81 | done: | 78 | done: |
82 | pr_info("Path: %s\n", path_nm); | 79 | pr_info("Path: %s\n", !IS_ERR(path_nm) ? path_nm : "?"); |
83 | } | 80 | } |
84 | 81 | ||
85 | static void show_faulting_vma(unsigned long address, char *buf) | 82 | static void show_faulting_vma(unsigned long address, char *buf) |
@@ -103,8 +100,7 @@ static void show_faulting_vma(unsigned long address, char *buf) | |||
103 | if (vma && (vma->vm_start <= address)) { | 100 | if (vma && (vma->vm_start <= address)) { |
104 | struct file *file = vma->vm_file; | 101 | struct file *file = vma->vm_file; |
105 | if (file) { | 102 | if (file) { |
106 | struct path *path = &file->f_path; | 103 | nm = file_path(file, buf, PAGE_SIZE - 1); |
107 | nm = d_path(path, buf, PAGE_SIZE - 1); | ||
108 | inode = file_inode(vma->vm_file); | 104 | inode = file_inode(vma->vm_file); |
109 | dev = inode->i_sb->s_dev; | 105 | dev = inode->i_sb->s_dev; |
110 | ino = inode->i_ino; | 106 | ino = inode->i_ino; |