Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Chengguang Xu and committed by
Jan Kara
3e159b95 569ae920

+2 -1
+2 -1
fs/ext2/xattr.c
··· 835 835 __u32 hash = le32_to_cpu(HDR(bh)->h_hash); 836 836 int error; 837 837 838 - error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr, 1); 838 + error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr, 839 + true); 839 840 if (error) { 840 841 if (error == -EBUSY) { 841 842 ea_bdebug(bh, "already in cache (%d cache entries)",