projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1bd120
)
9p: replace inode uid,gid,mode initialization with helper function
author
Dmitry Monakhov
<dmonakhov@openvz.org>
Thu, 4 Mar 2010 14:30:57 +0000
(17:30 +0300)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:23 +0000
(18:31 -0400)
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/vfs_inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/9p/vfs_inode.c
b/fs/9p/vfs_inode.c
index f2434fc9d2c44f620e2e579a19318321e12d6e71..6d4d86187c55adc63dc3079b3768ce91b5eeffaa 100644
(file)
--- a/
fs/9p/vfs_inode.c
+++ b/
fs/9p/vfs_inode.c
@@
-253,9
+253,7
@@
struct inode *v9fs_get_inode(struct super_block *sb, int mode)
return ERR_PTR(-ENOMEM);
}
- inode->i_mode = mode;
- inode->i_uid = current_fsuid();
- inode->i_gid = current_fsgid();
+ inode_init_owner(inode, NULL, mode);
inode->i_blocks = 0;
inode->i_rdev = 0;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;