summaryrefslogtreecommitdiffstats
path: root/fs
Commit message (Collapse)AuthorAgeFilesLines
* switch may_mknod() to umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch sys_chmod()/sys_fchmod()/sys_fchmodat() to umode_tAl Viro2012-01-031-3/+3
| | | | | | SYSCALLx magic should take care of things, according to Linus... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* get rid of open-coded S_ISREG(), etc.Al Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch is_sxid() to umode_tAl Viro2012-01-031-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch inode_init_owner() to umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* fs: propagate umode_t, misc bitsAl Viro2012-01-039-17/+17
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* autofs4: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hfsplus: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hfs: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* cifs: propagate umode_tAl Viro2012-01-034-6/+6
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* fat: propagate umode_tAl Viro2012-01-032-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ntfs: propagate umode_tAl Viro2012-01-032-5/+5
| | | | | | same story as with isofs and udf... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* isofs: propagate umode_tAl Viro2012-01-032-5/+5
| | | | | | situation with mount options is the same as for udf Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* udf: propagate umode_tAl Viro2012-01-035-15/+15
| | | | | | | | note re mount options: fmask and dmask are explicitly truncated to 12bit, UDF_INVALID_MODE just needs to be guaranteed to differ from any such value. And umask is used only in &= with umode_t, so we ignore other bits anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* fuse: propagate umode_tAl Viro2012-01-032-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* pohmelfs: propagate umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* logfs: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ubifs: propagate umode_tAl Viro2012-01-032-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ncpfs: propagate umode_tAl Viro2012-01-033-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hugetlbfs: propagate umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* exofs: propagate umode_tAl Viro2012-01-033-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* nilfs: propagate umode_tAl Viro2012-01-033-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* affs: propagate umode_tAl Viro2012-01-032-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* sysfs: propagate umode_tAl Viro2012-01-033-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ocfs2: propagate umode_tAl Viro2012-01-034-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* dlmfs: use inode_init_owner()Al Viro2012-01-031-13/+2
| | | | | | don't open-code it... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* 9p: propagate umode_tAl Viro2012-01-034-14/+15
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* omfs: propagate umode_tAl Viro2012-01-033-3/+3
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* reiserfs: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* xfs: propagate umode_tAl Viro2012-01-039-13/+13
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* sysv: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ufs: propagate umode_tAl Viro2012-01-033-4/+4
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* minix: propagate umode_tAl Viro2012-01-032-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext4: propagate umode_tAl Viro2012-01-032-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext3: propagate umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* ext2: propagate umode_tAl Viro2012-01-033-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-031-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-031-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-032-5/+5
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch debugfs to umode_tAl Viro2012-01-033-19/+19
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch sysfs_chmod_file() to umode_tAl Viro2012-01-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch procfs to umode_t useAl Viro2012-01-033-6/+6
| | | | | | 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-031-1/+1
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* hugetlbfs: switch to inode_init_owner()Al Viro2012-01-031-27/+32
| | | | | | ... rather than open-coding it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch ->mknod() to umode_tAl Viro2012-01-0334-41/+41
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* switch ->create() to umode_tAl Viro2012-01-0344-58/+58
| | | | | | | | 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-0346-57/+57
| | | | | | | 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-031-2/+2
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* vfs: fix the rest of sget() racesAl Viro2012-01-031-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-033-16/+15
| | | | | | | ... and bury user_get_super()/statfs_by_dentry() - they are purely internal now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
OpenPOWER on IntegriCloud