Commit c639d5d8 authored by Abhijith Das's avatar Abhijith Das Committed by Steven Whitehouse

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: default avatarAbhi Das <adas@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 7cdee5db
...@@ -1040,7 +1040,7 @@ static int trunc_start(struct gfs2_inode *ip, u64 size) ...@@ -1040,7 +1040,7 @@ static int trunc_start(struct gfs2_inode *ip, u64 size)
goto out; goto out;
if (gfs2_is_stuffed(ip)) { 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_disksize = size;
ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME; ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME;
gfs2_trans_add_bh(ip->i_gl, dibh, 1); gfs2_trans_add_bh(ip->i_gl, dibh, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment