projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8ded5
)
logfs: replace inode uid,gid,mode initialization with helper function
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 15 May 2010 08:02:54 +0000
(
04:02
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:27 +0000
(18:31 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/logfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/logfs/inode.c
b/fs/logfs/inode.c
index 755a92e8daa774b109d55b89346f09525552e160..f602e230e16282aa00d10c26c93b6c5cec0015ac 100644
(file)
--- a/
fs/logfs/inode.c
+++ b/
fs/logfs/inode.c
@@
-358,14
+358,7
@@
struct inode *logfs_new_inode(struct inode *dir, int mode)
inode->i_mode = mode;
logfs_set_ino_generation(sb, inode);
- inode->i_uid = current_fsuid();
- inode->i_gid = current_fsgid();
- if (dir->i_mode & S_ISGID) {
- inode->i_gid = dir->i_gid;
- if (S_ISDIR(mode))
- inode->i_mode |= S_ISGID;
- }
-
+ inode_init_owner(inode, dir, mode);
logfs_inode_setops(inode);
insert_inode_hash(inode);