Whamcloud - gitweb
LU-3744 llite: use 64bits flags in ll_lov_setea()
[fs/lustre-release.git] / lustre / llite / xattr.c
index 093f60d..1b5b821 100644 (file)
@@ -241,17 +241,17 @@ int ll_setxattr(struct dentry *dentry, const char *name,
                 if (lump != NULL && lump->lmm_stripe_offset == 0)
                         lump->lmm_stripe_offset = -1;
 
-                if (lump != NULL && S_ISREG(inode->i_mode)) {
-                        struct file f;
-                        int flags = FMODE_WRITE;
+               if (lump != NULL && S_ISREG(inode->i_mode)) {
+                       struct file     f;
+                       __u64           it_flags = FMODE_WRITE;
                        int lum_size = (lump->lmm_magic == LOV_USER_MAGIC_V1) ?
                                sizeof(*lump) : sizeof(struct lov_user_md_v3);
 
                        f.f_dentry = dentry;
-                       rc = ll_lov_setstripe_ea_info(inode, &f, flags, lump,
+                       rc = ll_lov_setstripe_ea_info(inode, &f, it_flags, lump,
                                                      lum_size);
-                        /* b10667: rc always be 0 here for now */
-                        rc = 0;
+                       /* b10667: rc always be 0 here for now */
+                       rc = 0;
                 } else if (S_ISDIR(inode->i_mode)) {
                         rc = ll_dir_setstripe(inode, lump, 0);
                 }