Whamcloud - gitweb
LU-17533 llite: call merge attr on all writes
[fs/lustre-release.git] / lustre / llite / file.c
index 660a966..bc8905b 100644 (file)
@@ -1962,6 +1962,10 @@ out:
                goto restart;
        }
 
+       /* update inode size */
+       if (io->ci_type == CIT_WRITE)
+               ll_merge_attr(env, inode);
+
        if (io->ci_dio_aio) {
                /* set the number of bytes successfully moved in the aio */
                if (result > 0)