diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-02-10 23:40:34 +0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-21 14:13:33 +0400 |
commit | c18cdc1a3ec643b5c6c0d65aac1a6bf8e461778f (patch) | |
tree | cf64715724bb73a7bb19cd15ba87188d0a31af38 /fs/jfs/file.c | |
parent | 0cfe53d3c3875e1dd565b30737cd5c6691c00188 (diff) | |
download | linux-c18cdc1a3ec643b5c6c0d65aac1a6bf8e461778f.tar.xz |
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; |