Commit c639d5d8f69f37e24ed0354373f61fcbde4b9354

Authored by Abhijith Das
Committed by Steven Whitehouse
1 parent 7cdee5dbf4

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1040,7 +1040,7 @@
1040 1040 goto out;
1041 1041  
1042 1042 if (gfs2_is_stuffed(ip)) {
1043   - u64 dsize = size + sizeof(struct gfs2_inode);
  1043 + u64 dsize = size + sizeof(struct gfs2_dinode);
1044 1044 ip->i_disksize = size;
1045 1045 ip->i_inode.i_mtime = ip->i_inode.i_ctime = CURRENT_TIME;
1046 1046 gfs2_trans_add_bh(ip->i_gl, dibh, 1);