]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - fs/btrfs/inode.c
btrfs: fix file truncation if FALLOC_FL_KEEP_SIZE is specified
[linux-imx.git] / fs / btrfs / inode.c
index 6d1b93c8aafb8a4d7b832cab8585ebf1ac1ced42..0fd7647c893249f24580b934e891b601a40b193e 100644 (file)
@@ -4391,9 +4391,6 @@ static int btrfs_setsize(struct inode *inode, struct iattr *attr)
        int mask = attr->ia_valid;
        int ret;
 
-       if (newsize == oldsize)
-               return 0;
-
        /*
         * The regular truncate() case without ATTR_CTIME and ATTR_MTIME is a
         * special case where we need to update the times despite not having