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 /mm | |
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 'mm')
-rw-r--r-- | mm/filemap.c | 2 | ||||
-rw-r--r-- | mm/memory.c | 2 | ||||
-rw-r--r-- | mm/swapfile.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 11f10efd637c..1283fc825458 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -2563,7 +2563,7 @@ ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from) | |||
2563 | 2563 | ||
2564 | /* We can write back this queue in page reclaim */ | 2564 | /* We can write back this queue in page reclaim */ |
2565 | current->backing_dev_info = inode_to_bdi(inode); | 2565 | current->backing_dev_info = inode_to_bdi(inode); |
2566 | err = file_remove_suid(file); | 2566 | err = file_remove_privs(file); |
2567 | if (err) | 2567 | if (err) |
2568 | goto out; | 2568 | goto out; |
2569 | 2569 | ||
diff --git a/mm/memory.c b/mm/memory.c index 11b9ca176740..a84fbb772034 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -3726,7 +3726,7 @@ void print_vma_addr(char *prefix, unsigned long ip) | |||
3726 | if (buf) { | 3726 | if (buf) { |
3727 | char *p; | 3727 | char *p; |
3728 | 3728 | ||
3729 | p = d_path(&f->f_path, buf, PAGE_SIZE); | 3729 | p = file_path(f, buf, PAGE_SIZE); |
3730 | if (IS_ERR(p)) | 3730 | if (IS_ERR(p)) |
3731 | p = "?"; | 3731 | p = "?"; |
3732 | printk("%s%s[%lx+%lx]", prefix, kbasename(p), | 3732 | printk("%s%s[%lx+%lx]", prefix, kbasename(p), |
diff --git a/mm/swapfile.c b/mm/swapfile.c index a7e72103f23b..41e4581af7c5 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -2032,7 +2032,7 @@ static int swap_show(struct seq_file *swap, void *v) | |||
2032 | } | 2032 | } |
2033 | 2033 | ||
2034 | file = si->swap_file; | 2034 | file = si->swap_file; |
2035 | len = seq_path(swap, &file->f_path, " \t\n\\"); | 2035 | len = seq_file_path(swap, file, " \t\n\\"); |
2036 | seq_printf(swap, "%*s%s\t%u\t%u\t%d\n", | 2036 | seq_printf(swap, "%*s%s\t%u\t%u\t%d\n", |
2037 | len < 40 ? 40 - len : 1, " ", | 2037 | len < 40 ? 40 - len : 1, " ", |
2038 | S_ISBLK(file_inode(file)->i_mode) ? | 2038 | S_ISBLK(file_inode(file)->i_mode) ? |