aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorAbhijith Das <adas@redhat.com>2010-07-30 11:34:52 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2010-07-30 16:34:06 +0100
commitc639d5d8f69f37e24ed0354373f61fcbde4b9354 (patch)
tree02f16a487bc88d98fe25766307bf688cf7771f36 /fs/gfs2/bmap.c
parent7cdee5dbf477409e4afc6c9063492dc2577b41ea (diff)
downloadkernel_samsung_smdk4412-c639d5d8f69f37e24ed0354373f61fcbde4b9354.zip
kernel_samsung_smdk4412-c639d5d8f69f37e24ed0354373f61fcbde4b9354.tar.gz
kernel_samsung_smdk4412-c639d5d8f69f37e24ed0354373f61fcbde4b9354.tar.bz2
GFS2: Fix typo in stuffed file data copy handling
trunc_start() in bmap.c incorrectly uses sizeof(struct gfs2_inode) instead of sizeof(struct gfs2_dinode). Signed-off-by: Abhi Das <adas@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 744c29e..6f48280 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -1040,7 +1040,7 @@ static int trunc_start(struct gfs2_inode *ip, u64 size)
goto out;
if (gfs2_is_stuffed(ip)) {
- u64 dsize = size + sizeof(struct gfs2_inode);
+ u64 dsize = size + sizeof(struct gfs2_dinode);
ip->i_disksize = size;
ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME;
gfs2_trans_add_bh(ip->i_gl, dibh, 1);