summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* affs: propagate umode_tAl Viro2012-01-042-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* cgroup: propagate mode_tAl Viro2012-01-042-8/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* infiniband: umode_t noise, including open-coded S_ISDIR()Al Viro2012-01-042-6/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* sysfs: propagate umode_tAl Viro2012-01-044-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* usbfs: propagate umode_tAl Viro2012-01-041-10/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hypfs: umode_t noise and properly spelled S_ISDIR/S_ISREGAl Viro2012-01-041-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ocfs2: propagate umode_tAl Viro2012-01-044-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dlmfs: use inode_init_owner()Al Viro2012-01-041-13/+2
| | | | | | don't open-code it... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* 9p: propagate umode_tAl Viro2012-01-044-14/+15
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* omfs: propagate umode_tAl Viro2012-01-043-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* reiserfs: propagate umode_tAl Viro2012-01-043-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* xfs: propagate umode_tAl Viro2012-01-049-13/+13
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* sysv: propagate umode_tAl Viro2012-01-042-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ufs: propagate umode_tAl Viro2012-01-043-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* minix: propagate umode_tAl Viro2012-01-042-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext4: propagate umode_tAl Viro2012-01-042-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext3: propagate umode_tAl Viro2012-01-042-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext2: propagate umode_tAl Viro2012-01-043-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* 9p: don't bother with unixmode2p9mode() for link() and symlink()Al Viro2012-01-041-12/+8
| | | | | | | | | Pass perm to v9fs_vfs_mkspecial() instead of passing mode; calculate in caller when done for mknod(), use known value for link() and symlink(). As the result, we avoid a bit of work *and* stop mixing mode_t with P9_DMLINK. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* kill ecryptfs_create_underlying_file()Al Viro2012-01-041-20/+1
| | | | | | it's a just a wrapper for vfs_create() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* configfs: convert to umode_tAl Viro2012-01-044-7/+7
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch devtmpfs to umode_tAl Viro2012-01-041-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch debugfs to umode_tAl Viro2012-01-0425-82/+82
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch sysfs_chmod_file() to umode_tAl Viro2012-01-043-6/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch procfs to umode_t useAl Viro2012-01-0413-32/+31
| | | | | | both proc_dir_entry ->mode and populating functions Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch ->is_visible() to returning umode_tAl Viro2012-01-0433-70/+70
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch sysfs attr->mode to umode_tAl Viro2012-01-042-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch device_get_devnode() and ->devnode() to umode_t *Al Viro2012-01-0431-35/+35
| | | | | | | both callers of device_get_devnode() are only interested in lower 16bits and nobody tries to return anything wider than 16bit anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hugetlbfs: switch to inode_init_owner()Al Viro2012-01-041-27/+32
| | | | | | ... rather than open-coding it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch ->mknod() to umode_tAl Viro2012-01-0442-51/+51
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch ->create() to umode_tAl Viro2012-01-0454-72/+72
| | | | | | | | vfs_create() ignores everything outside of 16bit subset of its mode argument; switching it to umode_t is obviously equivalent and it's the only caller of the method Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch vfs_mkdir() and ->mkdir() to umode_tAl Viro2012-01-0456-70/+70
| | | | | | | vfs_mkdir() gets int, but immediately drops everything that might not fit into umode_t and that's the only caller of ->mkdir()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch sys_mknodat(2) to umode_tAl Viro2012-01-042-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: fix the rest of sget() racesAl Viro2012-01-041-7/+13
| | | | | | | | | | | | | | | | | unfortunately, just checking MS_BORN after having grabbed ->s_umount in sget() is not enough; places that pick superblock from a list and grab s_umount shared need the same check in addition to checking for ->s_root; otherwise three-way race between failing mount, sget() and such list-walker can leave us with list-walker coming *second*, when temporary active ref grabbed by sget() (to be dropped when sget() notices that original mount has failed by checking MS_BORN) has lead to deactivate_locked_super() from failing ->mount() *not* doing ->kill_sb() and just releasing ->s_umount. Once sget() gets through and notices that MS_BORN had never been set it will drop the active ref and fs will be shut down and kicked out of all lists, but it's too late for something like sync_supers(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: new helper - vfs_ustat()Al Viro2012-01-045-26/+17
| | | | | | | ... and bury user_get_super()/statfs_by_dentry() - they are purely internal now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: live vfsmounts never have NULL ->mnt_sbAl Viro2012-01-042-4/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: for usbfs, etc. internal vfsmounts ->mnt_sb->s_root == ->mnt_rootAl Viro2012-01-046-8/+8
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of timer in kern/acct.cAl Viro2012-01-041-30/+10
| | | | | | ... and clean it up a bit, while we are at it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: pipe.c is really non-modularAl Viro2012-01-041-7/+0
| | | | | | | ... so no exitcalls there. Not much would work if pipe(2) would stop working, after all... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: fix the stupidity with i_dentry in inode destructorsAl Viro2012-01-0453-55/+1
| | | | | | | | | | Seeing that just about every destructor got that INIT_LIST_HEAD() copied into it, there is no point whatsoever keeping this INIT_LIST_HEAD in inode_init_once(); the cost of taking it into inode_init_always() will be negligible for pipes and sockets and negative for everything else. Not to mention the removal of boilerplate code from ->destroy_inode() instances... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: mnt_drop_write_file()Al Viro2012-01-0422-48/+55
| | | | | | | new helper (wrapper around mnt_drop_write()) to be used in pair with mnt_want_write_file(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* constify seq_file stuffAl Viro2012-01-042-10/+10
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: make do_kern_mount() staticAl Viro2012-01-042-5/+1
| | | | | | the only user outside of fs/namespace.c has died Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: convert fs_supers to hlistAl Viro2012-01-043-15/+16
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* make nfs_follow_remote_path() handle ERR_PTR() passed as root_mntAl Viro2012-01-041-9/+9
| | | | | | ... rather than duplicating that in callers Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: kill ->mnt_devname use in afs printksAl Viro2012-01-041-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* btrfs, nfs, apparmor: don't pull mnt_namespace.h for no reason...Al Viro2012-01-043-3/+0
| | | | | | | | it's not needed anymore; we used to, back when we had to do mount_subtree() by hand, complete with put_mnt_ns() in it. No more... Apparmor didn't need it since the __d_path() fix. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* tomoyo: stop including hell knows whatAl Viro2012-01-041-8/+0
| | | | | | | | | | tomoyo/realpath.c needs exactly one include - that of common.h. It pulls everything the thing needs, without doing ridiculous garbage such as trying to include ../../fs/internal.h. If that alone doesn't scream "layering violation", I don't know what does; and these days it's all for nothing, since it fortunately does not use any symbols defined in there... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: dentry_reset_mounted() doesn't use vfsmount argumentAl Viro2012-01-041-3/+3
| | | | | | lose it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* unexport put_mnt_ns(), make create_mnt_ns() static outrightAl Viro2012-01-042-4/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>