]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fs/jfs: remove unnecessary new_valid_dev() checks
authorYaowei Bai <bywxiaobai@163.com>
Mon, 9 Nov 2015 22:58:47 +0000 (14:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2015 23:11:24 +0000 (15:11 -0800)
new_valid_dev() always returns 1, so the !new_valid_dev() checks are not
needed.  Remove them.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/jfs/namei.c
fs/jfs/super.c

index 35976bdccafcf3419abf6bbf7a870c75864fc405..9d7551f5c32a9ffb9a166f588e5f2211d62d0249 100644 (file)
@@ -1372,9 +1372,6 @@ static int jfs_mknod(struct inode *dir, struct dentry *dentry,
        tid_t tid;
        struct tblock *tblk;
 
-       if (!new_valid_dev(rdev))
-               return -EINVAL;
-
        jfs_info("jfs_mknod: %pd", dentry);
 
        rc = dquot_initialize(dir);
index 4cd9798f4948c646d065c50dd0f6092fe75197b0..8f9176caf098c559bbe3c9975b2dff9fffb0ffb4 100644 (file)
@@ -496,9 +496,6 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
 
        jfs_info("In jfs_read_super: s_flags=0x%lx", sb->s_flags);
 
-       if (!new_valid_dev(sb->s_bdev->bd_dev))
-               return -EOVERFLOW;
-
        sbi = kzalloc(sizeof(struct jfs_sb_info), GFP_KERNEL);
        if (!sbi)
                return -ENOMEM;