Commit e7738506 authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman
Browse files

staging: lustre: lustre: fix all bare unsigned usage



Turn all bare unsigned usage in the lustre code to proper
unsigned int.

Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae839184
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1287,7 +1287,7 @@ do { \
 * @{
 */
struct cl_page_list {
	unsigned	     pl_nr;
	unsigned int		 pl_nr;
	struct list_head	   pl_pages;
	struct task_struct	*pl_owner;
};
@@ -1842,7 +1842,7 @@ struct cl_io {
	/**
	 * Number of pages owned by this IO. For invariant checking.
	 */
	unsigned	     ci_owned_nr;
	unsigned int	     ci_owned_nr;
};

/** @} cl_io */
+2 −2
Original line number Diff line number Diff line
@@ -968,11 +968,11 @@ struct lu_context {
	 * Version counter used to skip calls to lu_context_refill() when no
	 * keys were registered.
	 */
	unsigned	       lc_version;
	unsigned int		lc_version;
	/**
	 * Debugging cookie.
	 */
	unsigned	       lc_cookie;
	unsigned int		lc_cookie;
};

/**
+1 −1
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ static struct dentry *ll_lookup_nd(struct inode *parent, struct dentry *dentry,
 * together.
 */
static int ll_atomic_open(struct inode *dir, struct dentry *dentry,
			  struct file *file, unsigned open_flags,
			  struct file *file, unsigned int open_flags,
			  umode_t mode, int *opened)
{
	struct lookup_intent *it;
+1 −1
Original line number Diff line number Diff line
@@ -547,7 +547,7 @@ out:
}

static int ll_write_end(struct file *file, struct address_space *mapping,
			loff_t pos, unsigned len, unsigned copied,
			loff_t pos, unsigned int len, unsigned int copied,
			struct page *vmpage, void *fsdata)
{
	struct ll_cl_context *lcc = fsdata;
+3 −3
Original line number Diff line number Diff line
@@ -381,11 +381,11 @@ int cl_sb_fini(struct super_block *sb)
#define PGC_DEPTH_SHIFT (32)

struct vvp_pgcache_id {
	unsigned		 vpi_bucket;
	unsigned		 vpi_depth;
	unsigned int		 vpi_bucket;
	unsigned int		 vpi_depth;
	uint32_t		 vpi_index;

	unsigned		 vpi_curdep;
	unsigned int		 vpi_curdep;
	struct lu_object_header *vpi_obj;
};

Loading