Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba198098 authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

GFS2: Use MAX_LFS_FILESIZE for meta inode size



Using ~0ULL was cauing sign issues in filemap_fdatawrite_range, so
use MAX_LFS_FILESIZE instead.

Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent e412bdb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ struct inode *gfs2_aspace_get(struct gfs2_sbd *sdp)
	if (aspace) {
		mapping_set_gfp_mask(aspace->i_mapping, GFP_NOFS);
		aspace->i_mapping->a_ops = &aspace_aops;
		aspace->i_size = ~0ULL;
		aspace->i_size = MAX_LFS_FILESIZE;
		ip = GFS2_I(aspace);
		clear_bit(GIF_USER, &ip->i_flags);
		insert_inode_hash(aspace);