btrfs: filp_open() returns ERR_PTR() on failure, not NULL...
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Dec 2014 07:59:17 +0000 (02:59 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Dec 2014 11:43:56 +0000 (06:43 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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);