diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-11-20 04:00:53 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-20 04:00:53 +0100 |
commit | 79683f2d685cfb6ef9c97c5194e3ce3319e80cac (patch) | |
tree | b6fbf05161a2d518a523dcbd66ea52bc8804bd9e /fs/btrfs/inode.c | |
parent | Btrfs: Fixes for 2.6.28-rc API changes (diff) | |
download | linux-79683f2d685cfb6ef9c97c5194e3ce3319e80cac.tar.xz linux-79683f2d685cfb6ef9c97c5194e3ce3319e80cac.zip |
Btrfs: Use current_fsuid/gid
This fixes compile problems with linux-next
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 806caacff86c..2c77e0957f74 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3422,8 +3422,8 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, if (objectid > root->highest_inode) root->highest_inode = objectid; - inode->i_uid = current->fsuid; - inode->i_gid = current->fsgid; + inode->i_uid = current_fsuid(); + inode->i_gid = current_fsgid(); inode->i_mode = mode; inode->i_ino = objectid; inode_set_bytes(inode, 0); |