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 /fs/minix | |
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 'fs/minix')
-rw-r--r-- | fs/minix/bitmap.c | 2 | ||||
-rw-r--r-- | fs/minix/inode.c | 1 | ||||
-rw-r--r-- | fs/minix/minix.h | 2 | ||||
-rw-r--r-- | fs/minix/namei.c | 6 |
4 files changed, 5 insertions, 6 deletions
diff --git a/fs/minix/bitmap.c b/fs/minix/bitmap.c index ef175cb8cfd8..4bc50dac8e97 100644 --- a/fs/minix/bitmap.c +++ b/fs/minix/bitmap.c | |||
@@ -209,7 +209,7 @@ void minix_free_inode(struct inode * inode) | |||
209 | mark_buffer_dirty(bh); | 209 | mark_buffer_dirty(bh); |
210 | } | 210 | } |
211 | 211 | ||
212 | struct inode *minix_new_inode(const struct inode *dir, int mode, int *error) | 212 | struct inode *minix_new_inode(const struct inode *dir, umode_t mode, int *error) |
213 | { | 213 | { |
214 | struct super_block *sb = dir->i_sb; | 214 | struct super_block *sb = dir->i_sb; |
215 | struct minix_sb_info *sbi = minix_sb(sb); | 215 | struct minix_sb_info *sbi = minix_sb(sb); |
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 4d46a6a59070..fa8b612b8ce2 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -71,7 +71,6 @@ static struct inode *minix_alloc_inode(struct super_block *sb) | |||
71 | static void minix_i_callback(struct rcu_head *head) | 71 | static void minix_i_callback(struct rcu_head *head) |
72 | { | 72 | { |
73 | struct inode *inode = container_of(head, struct inode, i_rcu); | 73 | struct inode *inode = container_of(head, struct inode, i_rcu); |
74 | INIT_LIST_HEAD(&inode->i_dentry); | ||
75 | kmem_cache_free(minix_inode_cachep, minix_i(inode)); | 74 | kmem_cache_free(minix_inode_cachep, minix_i(inode)); |
76 | } | 75 | } |
77 | 76 | ||
diff --git a/fs/minix/minix.h b/fs/minix/minix.h index 26bbd55e82ea..c889ef0aa571 100644 --- a/fs/minix/minix.h +++ b/fs/minix/minix.h | |||
@@ -46,7 +46,7 @@ struct minix_sb_info { | |||
46 | extern struct inode *minix_iget(struct super_block *, unsigned long); | 46 | extern struct inode *minix_iget(struct super_block *, unsigned long); |
47 | extern struct minix_inode * minix_V1_raw_inode(struct super_block *, ino_t, struct buffer_head **); | 47 | extern struct minix_inode * minix_V1_raw_inode(struct super_block *, ino_t, struct buffer_head **); |
48 | extern struct minix2_inode * minix_V2_raw_inode(struct super_block *, ino_t, struct buffer_head **); | 48 | extern struct minix2_inode * minix_V2_raw_inode(struct super_block *, ino_t, struct buffer_head **); |
49 | extern struct inode * minix_new_inode(const struct inode *, int, int *); | 49 | extern struct inode * minix_new_inode(const struct inode *, umode_t, int *); |
50 | extern void minix_free_inode(struct inode * inode); | 50 | extern void minix_free_inode(struct inode * inode); |
51 | extern unsigned long minix_count_free_inodes(struct super_block *sb); | 51 | extern unsigned long minix_count_free_inodes(struct super_block *sb); |
52 | extern int minix_new_block(struct inode * inode); | 52 | extern int minix_new_block(struct inode * inode); |
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index 6e6777f1b4b2..2f76e38c2065 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c | |||
@@ -36,7 +36,7 @@ static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry, st | |||
36 | return NULL; | 36 | return NULL; |
37 | } | 37 | } |
38 | 38 | ||
39 | static int minix_mknod(struct inode * dir, struct dentry *dentry, int mode, dev_t rdev) | 39 | static int minix_mknod(struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) |
40 | { | 40 | { |
41 | int error; | 41 | int error; |
42 | struct inode *inode; | 42 | struct inode *inode; |
@@ -54,7 +54,7 @@ static int minix_mknod(struct inode * dir, struct dentry *dentry, int mode, dev_ | |||
54 | return error; | 54 | return error; |
55 | } | 55 | } |
56 | 56 | ||
57 | static int minix_create(struct inode * dir, struct dentry *dentry, int mode, | 57 | static int minix_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
58 | struct nameidata *nd) | 58 | struct nameidata *nd) |
59 | { | 59 | { |
60 | return minix_mknod(dir, dentry, mode, 0); | 60 | return minix_mknod(dir, dentry, mode, 0); |
@@ -103,7 +103,7 @@ static int minix_link(struct dentry * old_dentry, struct inode * dir, | |||
103 | return add_nondir(dentry, inode); | 103 | return add_nondir(dentry, inode); |
104 | } | 104 | } |
105 | 105 | ||
106 | static int minix_mkdir(struct inode * dir, struct dentry *dentry, int mode) | 106 | static int minix_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) |
107 | { | 107 | { |
108 | struct inode * inode; | 108 | struct inode * inode; |
109 | int err = -EMLINK; | 109 | int err = -EMLINK; |