* [PATCH 17/19] ubifs: replace inode uid, gid, mode initialization with helper function [not found] <1266431353-8549-1-git-send-email-dmonakhov@openvz.org> @ 2010-02-17 18:46 ` Dmitry Monakhov 2010-02-18 10:54 ` [PATCH 17/19] ubifs: replace inode uid,gid,mode " Artem Bityutskiy 0 siblings, 1 reply; 2+ messages in thread From: Dmitry Monakhov @ 2010-02-17 18:46 UTC (permalink / raw) To: linux-fsdevel; +Cc: Dmitry Monakhov, linux-mtd Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> --- fs/ubifs/dir.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 552fb01..5a357bf 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @@ -104,14 +104,7 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, */ inode->i_flags |= (S_NOCMTIME); - inode->i_uid = current_fsuid(); - if (dir->i_mode & S_ISGID) { - inode->i_gid = dir->i_gid; - if (S_ISDIR(mode)) - mode |= S_ISGID; - } else - inode->i_gid = current_fsgid(); - inode->i_mode = mode; + inode_init_owner(inode, dir, mode); inode->i_mtime = inode->i_atime = inode->i_ctime = ubifs_current_time(inode); inode->i_mapping->nrpages = 0; -- 1.6.6 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 17/19] ubifs: replace inode uid,gid,mode initialization with helper function 2010-02-17 18:46 ` [PATCH 17/19] ubifs: replace inode uid, gid, mode initialization with helper function Dmitry Monakhov @ 2010-02-18 10:54 ` Artem Bityutskiy 0 siblings, 0 replies; 2+ messages in thread From: Artem Bityutskiy @ 2010-02-18 10:54 UTC (permalink / raw) To: Dmitry Monakhov; +Cc: linux-fsdevel, linux-mtd On Wed, 2010-02-17 at 21:46 +0300, Dmitry Monakhov wrote: > Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org> Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> > --- > fs/ubifs/dir.c | 9 +-------- > 1 files changed, 1 insertions(+), 8 deletions(-) > > diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c > index 552fb01..5a357bf 100644 > --- a/fs/ubifs/dir.c > +++ b/fs/ubifs/dir.c > @@ -104,14 +104,7 @@ struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, > */ > inode->i_flags |= (S_NOCMTIME); > > - inode->i_uid = current_fsuid(); > - if (dir->i_mode & S_ISGID) { > - inode->i_gid = dir->i_gid; > - if (S_ISDIR(mode)) > - mode |= S_ISGID; > - } else > - inode->i_gid = current_fsgid(); > - inode->i_mode = mode; > + inode_init_owner(inode, dir, mode); > inode->i_mtime = inode->i_atime = inode->i_ctime = > ubifs_current_time(inode); > inode->i_mapping->nrpages = 0; -- Best Regards, Artem Bityutskiy (Артём Битюцкий) ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-18 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1266431353-8549-1-git-send-email-dmonakhov@openvz.org>
2010-02-17 18:46 ` [PATCH 17/19] ubifs: replace inode uid, gid, mode initialization with helper function Dmitry Monakhov
2010-02-18 10:54 ` [PATCH 17/19] ubifs: replace inode uid,gid,mode " Artem Bityutskiy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).