Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8773 llite: refactor lov_object_fiemap()
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_offset.c
diff --git
a/lustre/lov/lov_offset.c
b/lustre/lov/lov_offset.c
index
6d80dab
..
3a7f610
100644
(file)
--- a/
lustre/lov/lov_offset.c
+++ b/
lustre/lov/lov_offset.c
@@
-15,11
+15,7
@@
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; If not, see
- * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
- *
- * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
- * CA 95054 USA or visit www.sun.com if you need additional information or
- * have any questions.
+ * http://www.gnu.org/licenses/gpl-2.0.html
*
* GPL HEADER END
*/
*
* GPL HEADER END
*/
@@
-76,9
+72,9
@@
pgoff_t lov_stripe_pgoff(struct lov_stripe_md *lsm, pgoff_t stripe_index,
{
loff_t offset;
{
loff_t offset;
- offset = lov_stripe_size(lsm, (stripe_index << PAGE_
CACHE_
SHIFT) + 1,
+ offset = lov_stripe_size(lsm, (stripe_index << PAGE_SHIFT) + 1,
stripe);
stripe);
- return offset >> PAGE_
CACHE_
SHIFT;
+ return offset >> PAGE_SHIFT;
}
/* we have an offset in file backed by an lov and want to find out where
}
/* we have an offset in file backed by an lov and want to find out where
@@
-231,15
+227,14
@@
loff_t lov_size_to_stripe(struct lov_stripe_md *lsm, u64 file_size,
* that is contained within the lov extent. this returns true if the given
* stripe does intersect with the lov extent. */
int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno,
* that is contained within the lov extent. this returns true if the given
* stripe does intersect with the lov extent. */
int lov_stripe_intersects(struct lov_stripe_md *lsm, int stripeno,
- loff_t start, loff_t end,
- loff_t *obd_start, loff_t *obd_end)
+ u64 start, u64 end, u64 *obd_start, u64 *obd_end)
{
int start_side, end_side;
start_side = lov_stripe_offset(lsm, start, stripeno, obd_start);
end_side = lov_stripe_offset(lsm, end, stripeno, obd_end);
{
int start_side, end_side;
start_side = lov_stripe_offset(lsm, start, stripeno, obd_start);
end_side = lov_stripe_offset(lsm, end, stripeno, obd_end);
- CDEBUG(D_INODE, "[
"LPD64"->"LPD64"] -> [(%d) "LPD64"->"LPD64"
(%d)]\n",
+ CDEBUG(D_INODE, "[
%lld->%lld] -> [(%d) %lld->%lld
(%d)]\n",
start, end, start_side, *obd_start, *obd_end, end_side);
/* this stripe doesn't intersect the file extent when neither
start, end, start_side, *obd_start, *obd_end, end_side);
/* this stripe doesn't intersect the file extent when neither