Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.24 /fs/cifs/dir.c

Filename:/fs/cifs/dir.c
Lines Added:5
Lines Deleted:6
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following) 2.6.24-git3  2.6.24-git4  2.6.24-git5  2.6.24-git6  2.6.24-git7  2.6.24-git8 

Location
[  2.6.24
  [  fs
    [  cifs
       o  dir.c

Patch

diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 4830acc..37dc97a 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -3,7 +3,7 @@
  *
  *   vfs operations that deal with dentries
  *
- *   Copyright (C) International Business Machines  Corp., 2002,2005
+ *   Copyright (C) International Business Machines  Corp., 2002,2007
  *   Author(s): Steve French (sfrench@us.ibm.com)
  *
  *   This library is free software; you can redistribute it and/or modify
@@ -269,7 +269,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
          CIFSSMBClose(xid, pTcon, fileHandle);
       } else if (newinode) {
          pCifsFile =
-            kzalloc(sizeof (struct cifsFileInfo), GFP_KERNEL);
+            kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL);
 
          if (pCifsFile == NULL)
             goto cifs_create_out;
@@ -397,7 +397,7 @@ int cifs_mknod(struct inode *inode, struct dentry *direntry, int mode,
             /* BB Do not bother to decode buf since no
                local inode yet to put timestamps in,
                but we can reuse it safely */
-            int bytes_written;
+            unsigned int bytes_written;
             struct win_dev *pdev;
             pdev = (struct win_dev *)buf;
             if (S_ISCHR(mode)) {
@@ -450,8 +450,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
 
    xid = GetXid();
 
-   cFYI(1,
-        (" parent inode = 0x%p name is: %s and dentry = 0x%p",
+   cFYI(1, (" parent inode = 0x%p name is: %s and dentry = 0x%p",
          parent_dir_inode, direntry->d_name.name, direntry));
 
    /* check whether path exists */
@@ -594,7 +593,7 @@ static int cifs_ci_compare(struct dentry *dentry, struct qstr *a,
        * case take precedence.  If a is not a negative dentry, this
        * should have no side effects
        */
-      memcpy((unsigned char *)a->name, b->name, a->len);
+      memcpy(a->name, b->name, a->len);
       return 0;
    }
    return 1;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.