ext2: change reusable parameter to true when calling mb_cache_entry_create()
authorChengguang Xu <cgxu519@gmx.com>
Thu, 15 Nov 2018 06:40:08 +0000 (14:40 +0800)
committerJan Kara <jack@suse.cz>
Thu, 15 Nov 2018 16:25:46 +0000 (17:25 +0100)
Reusable parameter of mb_cache_entry_create() is bool type,
so it's better to set true instead of 1.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/xattr.c

index 62d9a65..67970bf 100644 (file)
@@ -835,7 +835,8 @@ ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh)
        __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
        int error;
 
-       error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr, 1);
+       error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr,
+                                     true);
        if (error) {
                if (error == -EBUSY) {
                        ea_bdebug(bh, "already in cache (%d cache entries)",