aops.c (d8d3d94b80aa1a1c0ca75c58b8abdc7356f38418) aops.c (31b140398ce56ab41646eda7f02bcb78d6a4c916)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

--- 603 unchanged lines hidden (view full) ---

612 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
613 return 0;
614
615 /* Fallback to buffered I/O if we are appending. */
616 if (i_size_read(inode) <= offset)
617 return 0;
618
619 return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev,
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either

--- 603 unchanged lines hidden (view full) ---

612 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)
613 return 0;
614
615 /* Fallback to buffered I/O if we are appending. */
616 if (i_size_read(inode) <= offset)
617 return 0;
618
619 return __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev,
620 iter->iov, offset, iter->nr_segs,
620 iter, offset,
621 ocfs2_direct_IO_get_blocks,
622 ocfs2_dio_end_io, NULL, 0);
623}
624
625static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
626 u32 cpos,
627 unsigned int *start,
628 unsigned int *end)

--- 1453 unchanged lines hidden ---
621 ocfs2_direct_IO_get_blocks,
622 ocfs2_dio_end_io, NULL, 0);
623}
624
625static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
626 u32 cpos,
627 unsigned int *start,
628 unsigned int *end)

--- 1453 unchanged lines hidden ---