Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e159b95 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jan Kara
Browse files

ext2: change reusable parameter to true when calling mb_cache_entry_create()



Reusable parameter of mb_cache_entry_create() is bool type,
so it's better to set true instead of 1.

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 569ae920
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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);
	__u32 hash = le32_to_cpu(HDR(bh)->h_hash);
	int error;
	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) {
		if (error == -EBUSY) {
		if (error == -EBUSY) {
			ea_bdebug(bh, "already in cache (%d cache entries)",
			ea_bdebug(bh, "already in cache (%d cache entries)",