Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

GFS2: Direct IO write at end of file error

This patch fixes a problem whereby a direct_io write doesn't fall
back to buffered write properly at end of file.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

authored by

Bob Peterson and committed by
Steven Whitehouse
acb57a36 bd1eb881

+1 -1
+1 -1
fs/gfs2/ops_address.c
··· 975 975 if (gfs2_is_stuffed(ip)) 976 976 return 0; 977 977 978 - if (offset > i_size_read(&ip->i_inode)) 978 + if (offset >= i_size_read(&ip->i_inode)) 979 979 return 0; 980 980 return 1; 981 981 }