diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-05 11:50:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-05 11:50:26 -0400 |
commit | 45d9a2220f6004b47c362cc7fc7cf9a73cb6353a (patch) | |
tree | 4e2217464c5cd71674a6ffff1f3dddaeb52556b7 /mm | |
parent | 2386a3b0fbb0c2dcf29694c7df9a72cb268458f0 (diff) | |
parent | 02afc27faec94c9e068517a22acf55400976c698 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs pile 1 from Al Viro:
"Unfortunately, this merge window it'll have a be a lot of small piles -
my fault, actually, for not keeping #for-next in anything that would
resemble a sane shape ;-/
This pile: assorted fixes (the first 3 are -stable fodder, IMO) and
cleanups + %pd/%pD formats (dentry/file pathname, up to 4 last
components) + several long-standing patches from various folks.
There definitely will be a lot more (starting with Miklos'
check_submount_and_drop() series)"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (26 commits)
direct-io: Handle O_(D)SYNC AIO
direct-io: Implement generic deferred AIO completions
add formats for dentry/file pathnames
kvm eventfd: switch to fdget
powerpc kvm: use fdget
switch fchmod() to fdget
switch epoll_ctl() to fdget
switch copy_module_from_fd() to fdget
git simplify nilfs check for busy subtree
ibmasmfs: don't bother passing superblock when not needed
don't pass superblock to hypfs_{mkdir,create*}
don't pass superblock to hypfs_diag_create_files
don't pass superblock to hypfs_vm_create_files()
oprofile: get rid of pointless forward declarations of struct super_block
oprofilefs_create_...() do not need superblock argument
oprofilefs_mkdir() doesn't need superblock argument
don't bother with passing superblock to oprofile_create_stats_files()
oprofile: don't bother with passing superblock to ->create_files()
don't bother passing sb to oprofile_create_files()
coh901318: don't open-code simple_read_from_buffer()
...
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 2 | ||||
-rw-r--r-- | mm/shmem.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 4b51ac1acae7..731a2c24532d 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -2550,7 +2550,7 @@ ssize_t generic_file_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
2550 | ret = __generic_file_aio_write(iocb, iov, nr_segs, &iocb->ki_pos); | 2550 | ret = __generic_file_aio_write(iocb, iov, nr_segs, &iocb->ki_pos); |
2551 | mutex_unlock(&inode->i_mutex); | 2551 | mutex_unlock(&inode->i_mutex); |
2552 | 2552 | ||
2553 | if (ret > 0 || ret == -EIOCBQUEUED) { | 2553 | if (ret > 0) { |
2554 | ssize_t err; | 2554 | ssize_t err; |
2555 | 2555 | ||
2556 | err = generic_write_sync(file, pos, ret); | 2556 | err = generic_write_sync(file, pos, ret); |
diff --git a/mm/shmem.c b/mm/shmem.c index e43dc555069d..526149846d0a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -2615,13 +2615,15 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent) | |||
2615 | * tmpfs instance, limiting inodes to one per page of lowmem; | 2615 | * tmpfs instance, limiting inodes to one per page of lowmem; |
2616 | * but the internal instance is left unlimited. | 2616 | * but the internal instance is left unlimited. |
2617 | */ | 2617 | */ |
2618 | if (!(sb->s_flags & MS_NOUSER)) { | 2618 | if (!(sb->s_flags & MS_KERNMOUNT)) { |
2619 | sbinfo->max_blocks = shmem_default_max_blocks(); | 2619 | sbinfo->max_blocks = shmem_default_max_blocks(); |
2620 | sbinfo->max_inodes = shmem_default_max_inodes(); | 2620 | sbinfo->max_inodes = shmem_default_max_inodes(); |
2621 | if (shmem_parse_options(data, sbinfo, false)) { | 2621 | if (shmem_parse_options(data, sbinfo, false)) { |
2622 | err = -EINVAL; | 2622 | err = -EINVAL; |
2623 | goto failed; | 2623 | goto failed; |
2624 | } | 2624 | } |
2625 | } else { | ||
2626 | sb->s_flags |= MS_NOUSER; | ||
2625 | } | 2627 | } |
2626 | sb->s_export_op = &shmem_export_ops; | 2628 | sb->s_export_op = &shmem_export_ops; |
2627 | sb->s_flags |= MS_NOSEC; | 2629 | sb->s_flags |= MS_NOSEC; |
@@ -2831,8 +2833,7 @@ int __init shmem_init(void) | |||
2831 | goto out2; | 2833 | goto out2; |
2832 | } | 2834 | } |
2833 | 2835 | ||
2834 | shm_mnt = vfs_kern_mount(&shmem_fs_type, MS_NOUSER, | 2836 | shm_mnt = kern_mount(&shmem_fs_type); |
2835 | shmem_fs_type.name, NULL); | ||
2836 | if (IS_ERR(shm_mnt)) { | 2837 | if (IS_ERR(shm_mnt)) { |
2837 | error = PTR_ERR(shm_mnt); | 2838 | error = PTR_ERR(shm_mnt); |
2838 | printk(KERN_ERR "Could not kern_mount tmpfs\n"); | 2839 | printk(KERN_ERR "Could not kern_mount tmpfs\n"); |