diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-06-20 03:21:16 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-07-24 11:25:08 -0400 |
commit | 6d5786a34d98bffb8ad50d8053d1e53231fe0636 (patch) | |
tree | ae49860befc52cb18dfb2b86929878a204289601 /fs/cifs/link.c | |
parent | 2e6e02ab6ddbd539fd7e092973daf057adbd53dc (diff) |
CIFS: Rename Get/FreeXid and make them work with unsigned int
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r-- | fs/cifs/link.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 90d8add2a2a9..f78971511f57 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -181,7 +181,7 @@ CIFSFormatMFSymlink(u8 *buf, unsigned int buf_len, const char *link_str) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | static int | 183 | static int |
184 | CIFSCreateMFSymLink(const int xid, struct cifs_tcon *tcon, | 184 | CIFSCreateMFSymLink(const unsigned int xid, struct cifs_tcon *tcon, |
185 | const char *fromName, const char *toName, | 185 | const char *fromName, const char *toName, |
186 | struct cifs_sb_info *cifs_sb) | 186 | struct cifs_sb_info *cifs_sb) |
187 | { | 187 | { |
@@ -238,7 +238,7 @@ CIFSCreateMFSymLink(const int xid, struct cifs_tcon *tcon, | |||
238 | } | 238 | } |
239 | 239 | ||
240 | static int | 240 | static int |
241 | CIFSQueryMFSymLink(const int xid, struct cifs_tcon *tcon, | 241 | CIFSQueryMFSymLink(const unsigned int xid, struct cifs_tcon *tcon, |
242 | const unsigned char *searchName, char **symlinkinfo, | 242 | const unsigned char *searchName, char **symlinkinfo, |
243 | const struct nls_table *nls_codepage, int remap) | 243 | const struct nls_table *nls_codepage, int remap) |
244 | { | 244 | { |
@@ -307,7 +307,7 @@ CIFSCouldBeMFSymlink(const struct cifs_fattr *fattr) | |||
307 | int | 307 | int |
308 | CIFSCheckMFSymlink(struct cifs_fattr *fattr, | 308 | CIFSCheckMFSymlink(struct cifs_fattr *fattr, |
309 | const unsigned char *path, | 309 | const unsigned char *path, |
310 | struct cifs_sb_info *cifs_sb, int xid) | 310 | struct cifs_sb_info *cifs_sb, unsigned int xid) |
311 | { | 311 | { |
312 | int rc; | 312 | int rc; |
313 | int oplock = 0; | 313 | int oplock = 0; |
@@ -390,7 +390,7 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, | |||
390 | struct dentry *direntry) | 390 | struct dentry *direntry) |
391 | { | 391 | { |
392 | int rc = -EACCES; | 392 | int rc = -EACCES; |
393 | int xid; | 393 | unsigned int xid; |
394 | char *fromName = NULL; | 394 | char *fromName = NULL; |
395 | char *toName = NULL; | 395 | char *toName = NULL; |
396 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); | 396 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); |
@@ -403,7 +403,7 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, | |||
403 | return PTR_ERR(tlink); | 403 | return PTR_ERR(tlink); |
404 | pTcon = tlink_tcon(tlink); | 404 | pTcon = tlink_tcon(tlink); |
405 | 405 | ||
406 | xid = GetXid(); | 406 | xid = get_xid(); |
407 | 407 | ||
408 | fromName = build_path_from_dentry(old_file); | 408 | fromName = build_path_from_dentry(old_file); |
409 | toName = build_path_from_dentry(direntry); | 409 | toName = build_path_from_dentry(direntry); |
@@ -455,7 +455,7 @@ cifs_hardlink(struct dentry *old_file, struct inode *inode, | |||
455 | cifs_hl_exit: | 455 | cifs_hl_exit: |
456 | kfree(fromName); | 456 | kfree(fromName); |
457 | kfree(toName); | 457 | kfree(toName); |
458 | FreeXid(xid); | 458 | free_xid(xid); |
459 | cifs_put_tlink(tlink); | 459 | cifs_put_tlink(tlink); |
460 | return rc; | 460 | return rc; |
461 | } | 461 | } |
@@ -465,14 +465,14 @@ cifs_follow_link(struct dentry *direntry, struct nameidata *nd) | |||
465 | { | 465 | { |
466 | struct inode *inode = direntry->d_inode; | 466 | struct inode *inode = direntry->d_inode; |
467 | int rc = -ENOMEM; | 467 | int rc = -ENOMEM; |
468 | int xid; | 468 | unsigned int xid; |
469 | char *full_path = NULL; | 469 | char *full_path = NULL; |
470 | char *target_path = NULL; | 470 | char *target_path = NULL; |
471 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); | 471 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); |
472 | struct tcon_link *tlink = NULL; | 472 | struct tcon_link *tlink = NULL; |
473 | struct cifs_tcon *tcon; | 473 | struct cifs_tcon *tcon; |
474 | 474 | ||
475 | xid = GetXid(); | 475 | xid = get_xid(); |
476 | 476 | ||
477 | tlink = cifs_sb_tlink(cifs_sb); | 477 | tlink = cifs_sb_tlink(cifs_sb); |
478 | if (IS_ERR(tlink)) { | 478 | if (IS_ERR(tlink)) { |
@@ -529,7 +529,7 @@ out: | |||
529 | target_path = ERR_PTR(rc); | 529 | target_path = ERR_PTR(rc); |
530 | } | 530 | } |
531 | 531 | ||
532 | FreeXid(xid); | 532 | free_xid(xid); |
533 | if (tlink) | 533 | if (tlink) |
534 | cifs_put_tlink(tlink); | 534 | cifs_put_tlink(tlink); |
535 | nd_set_link(nd, target_path); | 535 | nd_set_link(nd, target_path); |
@@ -540,14 +540,14 @@ int | |||
540 | cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname) | 540 | cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname) |
541 | { | 541 | { |
542 | int rc = -EOPNOTSUPP; | 542 | int rc = -EOPNOTSUPP; |
543 | int xid; | 543 | unsigned int xid; |
544 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); | 544 | struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); |
545 | struct tcon_link *tlink; | 545 | struct tcon_link *tlink; |
546 | struct cifs_tcon *pTcon; | 546 | struct cifs_tcon *pTcon; |
547 | char *full_path = NULL; | 547 | char *full_path = NULL; |
548 | struct inode *newinode = NULL; | 548 | struct inode *newinode = NULL; |
549 | 549 | ||
550 | xid = GetXid(); | 550 | xid = get_xid(); |
551 | 551 | ||
552 | tlink = cifs_sb_tlink(cifs_sb); | 552 | tlink = cifs_sb_tlink(cifs_sb); |
553 | if (IS_ERR(tlink)) { | 553 | if (IS_ERR(tlink)) { |
@@ -594,7 +594,7 @@ cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname) | |||
594 | symlink_exit: | 594 | symlink_exit: |
595 | kfree(full_path); | 595 | kfree(full_path); |
596 | cifs_put_tlink(tlink); | 596 | cifs_put_tlink(tlink); |
597 | FreeXid(xid); | 597 | free_xid(xid); |
598 | return rc; | 598 | return rc; |
599 | } | 599 | } |
600 | 600 | ||