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
Updated parameters for obdfs_writepage() to use struct *dentry instead of
[fs/lustre-release.git]
/
lustre
/
obdclass
/
genops.c
diff --git
a/lustre/obdclass/genops.c
b/lustre/obdclass/genops.c
index
5c75ca5
..
929dc88
100644
(file)
--- a/
lustre/obdclass/genops.c
+++ b/
lustre/obdclass/genops.c
@@
-212,7
+212,7
@@
int gen_copy_data(struct obd_conn *conn, obdattr *src, obdattr *tgt)
lck_page(page);
- while (index <
src->i_size / PAGE_SIZE
) {
+ while (index <
((src->i_size + PAGE_SIZE - 1) >> PAGE_SHIFT)
) {
page->index = index;
rc = OBP(conn->oc_dev, brw)(READ, conn, src, page, 0);