diff options
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index 793808263c6d..18d4af7417fa 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h | |||
@@ -59,8 +59,8 @@ static inline u64 gfs2_get_inode_blocks(const struct inode *inode) | |||
59 | 59 | ||
60 | static inline void gfs2_add_inode_blocks(struct inode *inode, s64 change) | 60 | static inline void gfs2_add_inode_blocks(struct inode *inode, s64 change) |
61 | { | 61 | { |
62 | gfs2_assert(GFS2_SB(inode), (change >= 0 || inode->i_blocks > -change)); | 62 | change <<= inode->i_blkbits - GFS2_BASIC_BLOCK_SHIFT; |
63 | change *= (GFS2_SB(inode)->sd_sb.sb_bsize/GFS2_BASIC_BLOCK); | 63 | gfs2_assert(GFS2_SB(inode), (change >= 0 || inode->i_blocks >= -change)); |
64 | inode->i_blocks += change; | 64 | inode->i_blocks += change; |
65 | } | 65 | } |
66 | 66 | ||