mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
* 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits) reiserfs: Properly display mount options in /proc/mounts vfs: prevent remount read-only if pending removes vfs: count unlinked inodes vfs: protect remounting superblock read-only vfs: keep list of mounts for each superblock vfs: switch ->show_options() to struct dentry * vfs: switch ->show_path() to struct dentry * vfs: switch ->show_devname() to struct dentry * vfs: switch ->show_stats to struct dentry * switch security_path_chmod() to struct path * vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb vfs: trim includes a bit switch mnt_namespace ->root to struct mount vfs: take /proc/*/mounts and friends to fs/proc_namespace.c vfs: opencode mntget() mnt_set_mountpoint() vfs: spread struct mount - remaining argument of next_mnt() vfs: move fsnotify junk to struct mount vfs: move mnt_devname vfs: move mnt_list to struct mount vfs: switch pnode.h macros to struct mount * ...
This commit is contained in:
commit
972b2c7199
476 changed files with 2588 additions and 2879 deletions
|
|
@ -237,7 +237,7 @@ extern long spu_sys_callback(struct spu_syscall_block *s);
|
|||
struct file;
|
||||
struct spufs_calls {
|
||||
long (*create_thread)(const char __user *name,
|
||||
unsigned int flags, mode_t mode,
|
||||
unsigned int flags, umode_t mode,
|
||||
struct file *neighbor);
|
||||
long (*spu_run)(struct file *filp, __u32 __user *unpc,
|
||||
__u32 __user *ustatus);
|
||||
|
|
|
|||
|
|
@ -30,12 +30,6 @@
|
|||
* 2 of the License, or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifdef __powerpc64__
|
||||
typedef unsigned int umode_t;
|
||||
#else
|
||||
typedef unsigned short umode_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
__u32 u[4];
|
||||
} __attribute__((aligned(16))) __vector128;
|
||||
|
|
|
|||
|
|
@ -783,7 +783,7 @@ static const struct file_operations lparcfg_fops = {
|
|||
static int __init lparcfg_init(void)
|
||||
{
|
||||
struct proc_dir_entry *ent;
|
||||
mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
|
||||
umode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
|
||||
|
||||
/* Allow writing if we have FW_FEATURE_SPLPAR */
|
||||
if (firmware_has_feature(FW_FEATURE_SPLPAR) &&
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ static inline void spufs_calls_put(struct spufs_calls *calls) { }
|
|||
|
||||
#endif /* CONFIG_SPU_FS_MODULE */
|
||||
|
||||
asmlinkage long sys_spu_create(const char __user *name,
|
||||
unsigned int flags, mode_t mode, int neighbor_fd)
|
||||
SYSCALL_DEFINE4(spu_create, const char __user *, name, unsigned int, flags,
|
||||
umode_t, mode, int, neighbor_fd)
|
||||
{
|
||||
long ret;
|
||||
struct file *neighbor;
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ spufs_alloc_inode(struct super_block *sb)
|
|||
static void spufs_i_callback(struct rcu_head *head)
|
||||
{
|
||||
struct inode *inode = container_of(head, struct inode, i_rcu);
|
||||
INIT_LIST_HEAD(&inode->i_dentry);
|
||||
kmem_cache_free(spufs_inode_cache, SPUFS_I(inode));
|
||||
}
|
||||
|
||||
|
|
@ -92,7 +91,7 @@ spufs_init_once(void *p)
|
|||
}
|
||||
|
||||
static struct inode *
|
||||
spufs_new_inode(struct super_block *sb, int mode)
|
||||
spufs_new_inode(struct super_block *sb, umode_t mode)
|
||||
{
|
||||
struct inode *inode;
|
||||
|
||||
|
|
@ -124,7 +123,7 @@ spufs_setattr(struct dentry *dentry, struct iattr *attr)
|
|||
|
||||
static int
|
||||
spufs_new_file(struct super_block *sb, struct dentry *dentry,
|
||||
const struct file_operations *fops, int mode,
|
||||
const struct file_operations *fops, umode_t mode,
|
||||
size_t size, struct spu_context *ctx)
|
||||
{
|
||||
static const struct inode_operations spufs_file_iops = {
|
||||
|
|
@ -194,7 +193,7 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir)
|
|||
}
|
||||
|
||||
static int spufs_fill_dir(struct dentry *dir,
|
||||
const struct spufs_tree_descr *files, int mode,
|
||||
const struct spufs_tree_descr *files, umode_t mode,
|
||||
struct spu_context *ctx)
|
||||
{
|
||||
struct dentry *dentry, *tmp;
|
||||
|
|
@ -264,7 +263,7 @@ EXPORT_SYMBOL_GPL(spufs_context_fops);
|
|||
|
||||
static int
|
||||
spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
|
||||
int mode)
|
||||
umode_t mode)
|
||||
{
|
||||
int ret;
|
||||
struct inode *inode;
|
||||
|
|
@ -447,7 +446,7 @@ spufs_set_affinity(unsigned int flags, struct spu_context *ctx,
|
|||
|
||||
static int
|
||||
spufs_create_context(struct inode *inode, struct dentry *dentry,
|
||||
struct vfsmount *mnt, int flags, int mode,
|
||||
struct vfsmount *mnt, int flags, umode_t mode,
|
||||
struct file *aff_filp)
|
||||
{
|
||||
int ret;
|
||||
|
|
@ -521,7 +520,7 @@ out:
|
|||
}
|
||||
|
||||
static int
|
||||
spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode)
|
||||
spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode)
|
||||
{
|
||||
int ret;
|
||||
struct inode *inode;
|
||||
|
|
@ -584,7 +583,7 @@ out:
|
|||
|
||||
static int spufs_create_gang(struct inode *inode,
|
||||
struct dentry *dentry,
|
||||
struct vfsmount *mnt, int mode)
|
||||
struct vfsmount *mnt, umode_t mode)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
@ -612,7 +611,7 @@ out:
|
|||
static struct file_system_type spufs_type;
|
||||
|
||||
long spufs_create(struct path *path, struct dentry *dentry,
|
||||
unsigned int flags, mode_t mode, struct file *filp)
|
||||
unsigned int flags, umode_t mode, struct file *filp)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ struct spufs_inode_info {
|
|||
struct spufs_tree_descr {
|
||||
const char *name;
|
||||
const struct file_operations *ops;
|
||||
int mode;
|
||||
umode_t mode;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
|
|
@ -249,7 +249,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[];
|
|||
extern struct spufs_calls spufs_calls;
|
||||
long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status);
|
||||
long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags,
|
||||
mode_t mode, struct file *filp);
|
||||
umode_t mode, struct file *filp);
|
||||
/* ELF coredump callbacks for writing SPU ELF notes */
|
||||
extern int spufs_coredump_extra_notes_size(void);
|
||||
extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ out:
|
|||
}
|
||||
|
||||
static long do_spu_create(const char __user *pathname, unsigned int flags,
|
||||
mode_t mode, struct file *neighbor)
|
||||
umode_t mode, struct file *neighbor)
|
||||
{
|
||||
struct path path;
|
||||
struct dentry *dentry;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <linux/bio.h>
|
||||
#include <linux/blkdev.h>
|
||||
#include <linux/buffer_head.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/fs.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue