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-169 lov: add basic infrastructure for layout lock
[fs/lustre-release.git]
/
lustre
/
liblustre
/
llite_lib.h
diff --git
a/lustre/liblustre/llite_lib.h
b/lustre/liblustre/llite_lib.h
index
b418240
..
ae3e550
100644
(file)
--- a/
lustre/liblustre/llite_lib.h
+++ b/
lustre/liblustre/llite_lib.h
@@
-431,4
+431,13
@@
static inline void cl_stats_tally(struct cl_device *dev, enum cl_req_type crt,
{
}
+static inline loff_t i_size_read(struct inode *inode)
+{
+ return inode->i_stbuf.st_size;
+}
+
+static inline void i_size_write(struct inode *inode, loff_t i_sz)
+{
+ inode->i_stbuf.st_size = i_sz;
+}
#endif