diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-02-10 20:40:34 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-21 12:13:33 +0200 |
commit | c18cdc1a3ec643b5c6c0d65aac1a6bf8e461778f (patch) | |
tree | cf64715724bb73a7bb19cd15ba87188d0a31af38 /fs/jfs/file.c | |
parent | userns: Convert jffs2 to use kuid and kgid where appropriate (diff) | |
download | linux-c18cdc1a3ec643b5c6c0d65aac1a6bf8e461778f.tar.xz linux-c18cdc1a3ec643b5c6c0d65aac1a6bf8e461778f.zip |
userns: Convert jfs to use kuid/kgid where appropriate
Cc: Dave Kleikamp <shaggy@kernel.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/jfs/file.c')
-rw-r--r-- | fs/jfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jfs/file.c b/fs/jfs/file.c index 844f9460cb11..9d3afd157f99 100644 --- a/fs/jfs/file.c +++ b/fs/jfs/file.c @@ -108,8 +108,8 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr) if (is_quota_modification(inode, iattr)) dquot_initialize(inode); - if ((iattr->ia_valid & ATTR_UID && iattr->ia_uid != inode->i_uid) || - (iattr->ia_valid & ATTR_GID && iattr->ia_gid != inode->i_gid)) { + if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || + (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { rc = dquot_transfer(inode, iattr); if (rc) return rc; |