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-10994 clio: remove struct vvp_page
[fs/lustre-release.git]
/
lustre
/
include
/
cl_object.h
diff --git
a/lustre/include/cl_object.h
b/lustre/include/cl_object.h
index
9d4769c
..
db21536
100644
(file)
--- a/
lustre/include/cl_object.h
+++ b/
lustre/include/cl_object.h
@@
-966,6
+966,11
@@
static inline struct page *cl_page_vmpage(const struct cl_page *page)
return page->cp_vmpage;
}
+static inline pgoff_t cl_page_index(const struct cl_page *cp)
+{
+ return cl_page_vmpage(cp)->index;
+}
+
/**
* Check if a cl_page is in use.
*