From ba879d3f0ffb6f470adbb4792b4162bdff42d88d Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 14 Nov 2008 10:38:51 +1100 Subject: [PATCH] --- yaml --- r: 120679 b: refs/heads/master c: 6a2f90e9fae0824e8b6b123f1ea7d9fff9079ef3 h: refs/heads/master i: 120677: c3821b01135a2b13670de661226aee3c7b011b09 120675: 77b75701d1806983dd32314fe363f25f836a237e 120671: e4fdda6ebaf2c9e6b7e49b1668d5d62316f4f5c6 v: v3 --- [refs] | 2 +- trunk/fs/ext3/balloc.c | 2 +- trunk/fs/ext3/ialloc.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 0fd9e605653e..93db57822e5c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a8dd4d67bdf9c48c5ebfa366592fde7e2d318b4f +refs/heads/master: 6a2f90e9fae0824e8b6b123f1ea7d9fff9079ef3 diff --git a/trunk/fs/ext3/balloc.c b/trunk/fs/ext3/balloc.c index f5b57a2ca35a..0dbf1c048475 100644 --- a/trunk/fs/ext3/balloc.c +++ b/trunk/fs/ext3/balloc.c @@ -1422,7 +1422,7 @@ static int ext3_has_free_blocks(struct ext3_sb_info *sbi) free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter); root_blocks = le32_to_cpu(sbi->s_es->s_r_blocks_count); if (free_blocks < root_blocks + 1 && !capable(CAP_SYS_RESOURCE) && - sbi->s_resuid != current->fsuid && + sbi->s_resuid != current_fsuid() && (sbi->s_resgid == 0 || !in_group_p (sbi->s_resgid))) { return 0; } diff --git a/trunk/fs/ext3/ialloc.c b/trunk/fs/ext3/ialloc.c index 47b678d73e7a..490bd0ed7896 100644 --- a/trunk/fs/ext3/ialloc.c +++ b/trunk/fs/ext3/ialloc.c @@ -539,7 +539,7 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode) percpu_counter_inc(&sbi->s_dirs_counter); sb->s_dirt = 1; - inode->i_uid = current->fsuid; + inode->i_uid = current_fsuid(); if (test_opt (sb, GRPID)) inode->i_gid = dir->i_gid; else if (dir->i_mode & S_ISGID) { @@ -547,7 +547,7 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode) if (S_ISDIR(mode)) mode |= S_ISGID; } else - inode->i_gid = current->fsgid; + inode->i_gid = current_fsgid(); inode->i_mode = mode; inode->i_ino = ino;