xfs: add EOFBLOCKS inode tagging/untagging
[deliverable/linux.git] / fs / xfs / xfs_iops.c
index 4e00cf091d2ccac6b0a9e65113a67b2b5169f21f..81f5c495328758a70f58502065b5dc3d72c749ed 100644 (file)
@@ -38,6 +38,7 @@
 #include "xfs_vnodeops.h"
 #include "xfs_inode_item.h"
 #include "xfs_trace.h"
+#include "xfs_icache.h"
 
 #include <linux/capability.h>
 #include <linux/xattr.h>
@@ -854,6 +855,9 @@ xfs_setattr_size(
                 * and do not wait the usual (long) time for writeout.
                 */
                xfs_iflags_set(ip, XFS_ITRUNCATED);
+
+               /* A truncate down always removes post-EOF blocks. */
+               xfs_inode_clear_eofblocks_tag(ip);
        }
 
        if (mask & ATTR_CTIME) {
This page took 0.028572 seconds and 5 git commands to generate.