diff options
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 2b81b1324a6f..9db8cff3baa4 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2643,6 +2643,11 @@ void ext4_read_inode(struct inode * inode) | |||
2643 | ei->i_frag_size = raw_inode->i_fsize; | 2643 | ei->i_frag_size = raw_inode->i_fsize; |
2644 | #endif | 2644 | #endif |
2645 | ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); | 2645 | ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl); |
2646 | if ((sizeof(sector_t) > 4) && | ||
2647 | (EXT4_SB(inode->i_sb)->s_es->s_creator_os != | ||
2648 | cpu_to_le32(EXT4_OS_HURD))) | ||
2649 | ei->i_file_acl |= | ||
2650 | ((__u64)le16_to_cpu(raw_inode->i_file_acl_high)) << 32; | ||
2646 | if (!S_ISREG(inode->i_mode)) { | 2651 | if (!S_ISREG(inode->i_mode)) { |
2647 | ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); | 2652 | ei->i_dir_acl = le32_to_cpu(raw_inode->i_dir_acl); |
2648 | } else { | 2653 | } else { |
@@ -2776,6 +2781,11 @@ static int ext4_do_update_inode(handle_t *handle, | |||
2776 | raw_inode->i_frag = ei->i_frag_no; | 2781 | raw_inode->i_frag = ei->i_frag_no; |
2777 | raw_inode->i_fsize = ei->i_frag_size; | 2782 | raw_inode->i_fsize = ei->i_frag_size; |
2778 | #endif | 2783 | #endif |
2784 | if ((sizeof(sector_t) > 4) && | ||
2785 | (EXT4_SB(inode->i_sb)->s_es->s_creator_os != | ||
2786 | cpu_to_le32(EXT4_OS_HURD))) | ||
2787 | raw_inode->i_file_acl_high = | ||
2788 | cpu_to_le16(ei->i_file_acl >> 32); | ||
2779 | raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); | 2789 | raw_inode->i_file_acl = cpu_to_le32(ei->i_file_acl); |
2780 | if (!S_ISREG(inode->i_mode)) { | 2790 | if (!S_ISREG(inode->i_mode)) { |
2781 | raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); | 2791 | raw_inode->i_dir_acl = cpu_to_le32(ei->i_dir_acl); |