diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 19:51:58 +0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 19:51:58 +0400 |
commit | 3bd1f4a173a3445f9919c21e775de2d8b9deacf8 (patch) | |
tree | 6b32056b5b63d41fc5d032318ed0f94dbc562288 /fs/ntfs/inode.h | |
parent | ca8fd7a0c6aa835e8014830b290cb965e85ac88e (diff) | |
download | linux-3bd1f4a173a3445f9919c21e775de2d8b9deacf8.tar.xz |
NTFS: Fix several occurences of a bug where we would perform 'var & ~const'
with a 64-bit variable and a int, i.e. 32-bit, constant. This causes
the higher order 32-bits of the 64-bit variable to be zeroed. To fix
this cast the 'const' to the same 64-bit type as 'var'.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/inode.h')
-rw-r--r-- | fs/ntfs/inode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/inode.h b/fs/ntfs/inode.h index 6eb99777a722..3de5c0231966 100644 --- a/fs/ntfs/inode.h +++ b/fs/ntfs/inode.h @@ -110,7 +110,7 @@ struct _ntfs_inode { u8 block_size_bits; /* Log2 of the above. */ u8 vcn_size_bits; /* Log2 of the above. */ } index; - struct { /* It is a compressed file or an attribute inode. */ + struct { /* It is a compressed/sparse file/attribute inode. */ s64 size; /* Copy of compressed_size from $DATA. */ u32 block_size; /* Size of a compression block |