Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / fs / btrfs / volumes.c
index 0144790e296ed90ac0d17fef5ec382bf36ea7347..50c5a8762aedfc7bf5be640b96b3eb4622b58f88 100644 (file)
@@ -1485,7 +1485,7 @@ static void update_dev_time(char *path_name)
        struct file *filp;
 
        filp = filp_open(path_name, O_RDWR, 0);
-       if (!filp)
+       if (IS_ERR(filp))
                return;
        file_update_time(filp);
        filp_close(filp, NULL);