Whamcloud - gitweb
b=1028 drop SOM dependency on quota
[fs/lustre-release.git] / lustre / osd / osd_handler.c
index 18b9539..302923c 100644 (file)
@@ -1287,13 +1287,12 @@ static int osd_inode_setattr(const struct lu_env *env,
                 i_size_write(inode, attr->la_size);
         }
 
+#if 0
         /* OSD should not change "i_blocks" which is used by quota.
-         * "i_blocks" should be changed by ldiskfs only.
-         * Enable this assignment for SOM purpose now, until it is
-         * stored in SOM EA. */
+         * "i_blocks" should be changed by ldiskfs only. */
         if (bits & LA_BLOCKS)
                 inode->i_blocks = attr->la_blocks;
-
+#endif
         if (bits & LA_MODE)
                 inode->i_mode   = (inode->i_mode & S_IFMT) |
                         (attr->la_mode & ~S_IFMT);