diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
commit | 972b2c719990f91eb3b2310d44ef8a2d38955a14 (patch) | |
tree | b25a250ec5bec4b7b6355d214642d8b57c5cab32 /drivers/infiniband | |
parent | 02550d61f49266930e674286379d3601006b2893 (diff) | |
parent | c3aa077648e147783a7a53b409578234647db853 (diff) |
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 *
...
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/cm.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_fs.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/hw/qib/qib_fs.c | 6 | ||||
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index 8b72f39202fb..c889aaef3416 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -3659,7 +3659,7 @@ static struct kobj_type cm_port_obj_type = { | |||
3659 | .release = cm_release_port_obj | 3659 | .release = cm_release_port_obj |
3660 | }; | 3660 | }; |
3661 | 3661 | ||
3662 | static char *cm_devnode(struct device *dev, mode_t *mode) | 3662 | static char *cm_devnode(struct device *dev, umode_t *mode) |
3663 | { | 3663 | { |
3664 | if (mode) | 3664 | if (mode) |
3665 | *mode = 0666; | 3665 | *mode = 0666; |
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 07db22997e97..f0d588f8859e 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -1175,7 +1175,7 @@ static void ib_umad_remove_one(struct ib_device *device) | |||
1175 | kref_put(&umad_dev->ref, ib_umad_release_dev); | 1175 | kref_put(&umad_dev->ref, ib_umad_release_dev); |
1176 | } | 1176 | } |
1177 | 1177 | ||
1178 | static char *umad_devnode(struct device *dev, mode_t *mode) | 1178 | static char *umad_devnode(struct device *dev, umode_t *mode) |
1179 | { | 1179 | { |
1180 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); | 1180 | return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev)); |
1181 | } | 1181 | } |
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index 879636746373..604556d73d25 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c | |||
@@ -846,7 +846,7 @@ static void ib_uverbs_remove_one(struct ib_device *device) | |||
846 | kfree(uverbs_dev); | 846 | kfree(uverbs_dev); |
847 | } | 847 | } |
848 | 848 | ||
849 | static char *uverbs_devnode(struct device *dev, mode_t *mode) | 849 | static char *uverbs_devnode(struct device *dev, umode_t *mode) |
850 | { | 850 | { |
851 | if (mode) | 851 | if (mode) |
852 | *mode = 0666; | 852 | *mode = 0666; |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 31ae1b108aea..b7d4216db3c3 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -46,7 +46,7 @@ | |||
46 | static struct super_block *ipath_super; | 46 | static struct super_block *ipath_super; |
47 | 47 | ||
48 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | 48 | static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, |
49 | int mode, const struct file_operations *fops, | 49 | umode_t mode, const struct file_operations *fops, |
50 | void *data) | 50 | void *data) |
51 | { | 51 | { |
52 | int error; | 52 | int error; |
@@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | |||
61 | inode->i_mode = mode; | 61 | inode->i_mode = mode; |
62 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 62 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
63 | inode->i_private = data; | 63 | inode->i_private = data; |
64 | if ((mode & S_IFMT) == S_IFDIR) { | 64 | if (S_ISDIR(mode)) { |
65 | inode->i_op = &simple_dir_inode_operations; | 65 | inode->i_op = &simple_dir_inode_operations; |
66 | inc_nlink(inode); | 66 | inc_nlink(inode); |
67 | inc_nlink(dir); | 67 | inc_nlink(dir); |
@@ -76,7 +76,7 @@ bail: | |||
76 | return error; | 76 | return error; |
77 | } | 77 | } |
78 | 78 | ||
79 | static int create_file(const char *name, mode_t mode, | 79 | static int create_file(const char *name, umode_t mode, |
80 | struct dentry *parent, struct dentry **dentry, | 80 | struct dentry *parent, struct dentry **dentry, |
81 | const struct file_operations *fops, void *data) | 81 | const struct file_operations *fops, void *data) |
82 | { | 82 | { |
diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index df7fa251dcdc..05e0f17c5b44 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c | |||
@@ -47,7 +47,7 @@ static struct super_block *qib_super; | |||
47 | #define private2dd(file) ((file)->f_dentry->d_inode->i_private) | 47 | #define private2dd(file) ((file)->f_dentry->d_inode->i_private) |
48 | 48 | ||
49 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, | 49 | static int qibfs_mknod(struct inode *dir, struct dentry *dentry, |
50 | int mode, const struct file_operations *fops, | 50 | umode_t mode, const struct file_operations *fops, |
51 | void *data) | 51 | void *data) |
52 | { | 52 | { |
53 | int error; | 53 | int error; |
@@ -67,7 +67,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry, | |||
67 | inode->i_mtime = inode->i_atime; | 67 | inode->i_mtime = inode->i_atime; |
68 | inode->i_ctime = inode->i_atime; | 68 | inode->i_ctime = inode->i_atime; |
69 | inode->i_private = data; | 69 | inode->i_private = data; |
70 | if ((mode & S_IFMT) == S_IFDIR) { | 70 | if (S_ISDIR(mode)) { |
71 | inode->i_op = &simple_dir_inode_operations; | 71 | inode->i_op = &simple_dir_inode_operations; |
72 | inc_nlink(inode); | 72 | inc_nlink(inode); |
73 | inc_nlink(dir); | 73 | inc_nlink(dir); |
@@ -82,7 +82,7 @@ bail: | |||
82 | return error; | 82 | return error; |
83 | } | 83 | } |
84 | 84 | ||
85 | static int create_file(const char *name, mode_t mode, | 85 | static int create_file(const char *name, umode_t mode, |
86 | struct dentry *parent, struct dentry **dentry, | 86 | struct dentry *parent, struct dentry **dentry, |
87 | const struct file_operations *fops, void *data) | 87 | const struct file_operations *fops, void *data) |
88 | { | 88 | { |
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 7e7373a700e6..9a43cb07f294 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c | |||
@@ -638,7 +638,7 @@ iscsi_iser_ep_disconnect(struct iscsi_endpoint *ep) | |||
638 | iser_conn_terminate(ib_conn); | 638 | iser_conn_terminate(ib_conn); |
639 | } | 639 | } |
640 | 640 | ||
641 | static mode_t iser_attr_is_visible(int param_type, int param) | 641 | static umode_t iser_attr_is_visible(int param_type, int param) |
642 | { | 642 | { |
643 | switch (param_type) { | 643 | switch (param_type) { |
644 | case ISCSI_HOST_PARAM: | 644 | case ISCSI_HOST_PARAM: |