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-673 llite: Add some metadata stats, fix some file stats.
[fs/lustre-release.git]
/
lustre
/
llite
/
vvp_io.c
diff --git
a/lustre/llite/vvp_io.c
b/lustre/llite/vvp_io.c
index
253d13a
..
1647399
100644
(file)
--- a/
lustre/llite/vvp_io.c
+++ b/
lustre/llite/vvp_io.c
@@
-1108,8
+1108,6
@@
int vvp_io_init(const struct lu_env *env, struct cl_object *obj,
{
struct vvp_io *vio = vvp_env_io(env);
struct ccc_io *cio = ccc_env_io(env);
- struct inode *inode = ccc_object_inode(obj);
- struct ll_sb_info *sbi = ll_i2sbi(inode);
int result;
CLOBINVRNT(env, obj, ccc_object_invariant(obj));
@@
-1132,10
+1130,7
@@
int vvp_io_init(const struct lu_env *env, struct cl_object *obj,
cio->cui_tot_nrsegs = 0;
}
} else if (io->ci_type == CIT_SETATTR) {
- if (cl_io_is_trunc(io))
- /* lockless truncate? */
- ll_stats_ops_tally(sbi, LPROC_LL_TRUNC, 1);
- else
+ if (!cl_io_is_trunc(io))
io->ci_lockreq = CILR_MANDATORY;
}
RETURN(result);