/* Returns: 0 (to ignore the i/o request and thus fall back to buffered i/o) 1 (to accept the i/o request)  */
static int gfs2_ok_for_dio(struct gfs2_inode *ip, int rw, loff_t offset)
/* Returns: 0 (to ignore the i/o request and thus fall back to buffered i/o) 1 (to accept the i/o request)  */
static int gfs2_ok_for_dio(struct gfs2_inode *ip, int rw, loff_t offset)
{
	if (gfs2_is_stuffed(ip))
		return 0;
	if (offset >= i_size_read(&ip->i_inode))
		return 0;
	return 1;
}