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-1346 libcfs: remove cfs_ file wrappers
[fs/lustre-release.git]
/
lustre
/
mdc
/
lproc_mdc.c
diff --git
a/lustre/mdc/lproc_mdc.c
b/lustre/mdc/lproc_mdc.c
index
7d4fa12
..
c0bf17b
100644
(file)
--- a/
lustre/mdc/lproc_mdc.c
+++ b/
lustre/mdc/lproc_mdc.c
@@
-127,9
+127,10
@@
static int mdc_wr_kuc(struct file *file, const char *buffer,
if (fd == 0) {
rc = libcfs_kkuc_group_put(KUC_GRP_HSM, lh);
} else {
- cfs_file_t *fp = cfs_get_fd(fd);
+ struct file *fp = fget(fd);
+
rc = libcfs_kkuc_msg_put(fp, lh);
-
cfs_put_file
(fp);
+
fput
(fp);
}
OBD_FREE(lh, len);
if (rc < 0)