From a63745e81cbb476b90c75ca3ca60b9ba4be95cae Mon Sep 17 00:00:00 2001 From: Valerie Aurora Henson Date: Mon, 7 Sep 2009 22:29:45 -0400 Subject: Use ext2fs_file_acl_block() instead of using .i_file_acl directly This provides support for 48-bit file acl blocks. Signed-off-by: Valerie Aurora Henson Signed-off-by: "Theodore Ts'o" --- e2fsck/super.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'e2fsck/super.c') diff --git a/e2fsck/super.c b/e2fsck/super.c index 2d5d6615..6b08688a 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -197,8 +197,8 @@ static int release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, if (pb.truncated_blocks) ext2fs_iblk_sub_blocks(fs, inode, pb.truncated_blocks); - if (inode->i_file_acl) { - retval = ext2fs_adjust_ea_refcount(fs, inode->i_file_acl, + if (ext2fs_file_acl_block(inode)) { + retval = ext2fs_adjust_ea_refcount(fs, ext2fs_file_acl_block(inode), block_buf, -1, &count); if (retval == EXT2_ET_BAD_EA_BLOCK_NUM) { retval = 0; @@ -211,8 +211,10 @@ static int release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, return 1; } if (count == 0) - ext2fs_block_alloc_stats(fs, inode->i_file_acl, -1); - inode->i_file_acl = 0; + ext2fs_block_alloc_stats(fs, + ext2fs_file_acl_block(inode), + -1); + ext2fs_file_acl_block_set(inode, 0); } return 0; } -- cgit v1.2.3