diff options
Diffstat (limited to 'fs/ufs/ialloc.c')
-rw-r--r-- | fs/ufs/ialloc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ufs/ialloc.c b/fs/ufs/ialloc.c index f93a55c4e..1a97daf7c 100644 --- a/fs/ufs/ialloc.c +++ b/fs/ufs/ialloc.c @@ -121,8 +121,8 @@ void ufs_free_inode (struct inode * inode) DEC_SWAB32(sb->fs_cs(cg).cs_ndir); } } - ubh_mark_buffer_dirty (USPI_UBH, 1); - ubh_mark_buffer_dirty (UCPI_UBH, 1); + ubh_mark_buffer_dirty (USPI_UBH); + ubh_mark_buffer_dirty (UCPI_UBH); if (sb->s_flags & MS_SYNCHRONOUS) { ubh_ll_rw_block (WRITE, 1, (struct ufs_buffer_head **) &ucpi); ubh_wait_on_buffer (UCPI_UBH); @@ -252,8 +252,8 @@ cg_found: INC_SWAB32(sb->fs_cs(cg).cs_ndir); } - ubh_mark_buffer_dirty (USPI_UBH, 1); - ubh_mark_buffer_dirty (UCPI_UBH, 1); + ubh_mark_buffer_dirty (USPI_UBH); + ubh_mark_buffer_dirty (UCPI_UBH); if (sb->s_flags & MS_SYNCHRONOUS) { ubh_ll_rw_block (WRITE, 1, (struct ufs_buffer_head **) &ucpi); ubh_wait_on_buffer (UCPI_UBH); @@ -265,9 +265,7 @@ cg_found: inode->i_nlink = 1; inode->i_dev = sb->s_dev; inode->i_uid = current->fsuid; - if (test_opt (sb, GRPID)) - inode->i_gid = dir->i_gid; - else if (dir->i_mode & S_ISGID) { + if (dir->i_mode & S_ISGID) { inode->i_gid = dir->i_gid; if (S_ISDIR(mode)) mode |= S_ISGID; |