projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ecdc7
)
omfs: replace inode uid,gid,mode initialization with helper function
author
Dmitry Monakhov
<dmonakhov@openvz.org>
Thu, 4 Mar 2010 14:32:17 +0000
(17:32 +0300)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:25 +0000
(18:31 -0400)
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/omfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/omfs/inode.c
b/fs/omfs/inode.c
index b44bb835e8eaa3e8767193fe0a1296d3ee7eefde..089839a6cc6404e46715df5543d4be0d9162c702 100644
(file)
--- a/
fs/omfs/inode.c
+++ b/
fs/omfs/inode.c
@@
-37,9
+37,7
@@
struct inode *omfs_new_inode(struct inode *dir, int mode)
goto fail;
inode->i_ino = new_block;
- inode->i_mode = mode;
- inode->i_uid = current_fsuid();
- inode->i_gid = current_fsgid();
+ inode_init_owner(inode, NULL, mode);
inode->i_mapping->a_ops = &omfs_aops;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;