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
add support for build HEAD without vfs_intent patches.
[fs/lustre-release.git]
/
lustre
/
llite
/
symlink.c
diff --git
a/lustre/llite/symlink.c
b/lustre/llite/symlink.c
index
3edbb1f
..
7c9c1d3
100644
(file)
--- a/
lustre/llite/symlink.c
+++ b/
lustre/llite/symlink.c
@@
-34,7
+34,7
@@
static int ll_readlink_internal(struct inode *inode,
{
struct ll_inode_info *lli = ll_i2info(inode);
struct ll_sb_info *sbi = ll_i2sbi(inode);
- int rc, symlen = i
node->i_size
+ 1;
+ int rc, symlen = i
_size_read(inode)
+ 1;
struct mdt_body *body;
struct obd_capa *oc;
ENTRY;
@@
-60,7
+60,7
@@
static int ll_readlink_internal(struct inode *inode,
body = lustre_msg_buf((*request)->rq_repmsg, REPLY_REC_OFF,
sizeof(*body));
LASSERT(body != NULL);
- LASSERT
_REPSWABBED(*request, REPLY_REC_OFF
);
+ LASSERT
(lustre_rep_swabbed(*request, REPLY_REC_OFF)
);
if ((body->valid & OBD_MD_LINKNAME) == 0) {
CERROR("OBD_MD_LINKNAME not set on reply\n");
@@
-134,7
+134,7
@@
static LL_FOLLOW_LINK_RETURN_TYPE ll_follow_link(struct dentry *dentry,
{
struct inode *inode = dentry->d_inode;
struct ll_inode_info *lli = ll_i2info(inode);
-#ifdef
LUSTRE_KERNEL_VERSION
+#ifdef
HAVE_VFS_INTENT_PATCHES
struct lookup_intent *it = ll_nd2it(nd);
#endif
struct ptlrpc_request *request;
@@
-142,7
+142,7
@@
static LL_FOLLOW_LINK_RETURN_TYPE ll_follow_link(struct dentry *dentry,
char *symname;
ENTRY;
-#ifdef
LUSTRE_KERNEL_VERSION
+#ifdef
HAVE_VFS_INTENT_PATCHES
if (it != NULL) {
int op = it->it_op;
int mode = it->it_create_mode;
@@
-201,18
+201,14
@@
static void ll_put_link(struct dentry *dentry, struct nameidata *nd, void *cooki
struct inode_operations ll_fast_symlink_inode_operations = {
.readlink = ll_readlink,
.setattr = ll_setattr,
-#ifdef
LUSTRE_KERNEL_VERSION
+#ifdef
HAVE_VFS_INTENT_PATCHES
.setattr_raw = ll_setattr_raw,
#endif
.follow_link = ll_follow_link,
#ifdef HAVE_COOKIE_FOLLOW_LINK
.put_link = ll_put_link,
#endif
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
- .revalidate_it = ll_inode_revalidate_it,
-#else
.getattr = ll_getattr,
-#endif
.permission = ll_inode_permission,
.setxattr = ll_setxattr,
.getxattr = ll_getxattr,