ubifs: ubifs_jnl_write_inode: Only check once for the limitation of xattr count
authorZhihao Cheng <chengzhihao1@huawei.com>
Fri, 12 Jul 2024 06:36:24 +0000 (14:36 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 14 Nov 2024 16:28:46 +0000 (17:28 +0100)
commit957e1c4e1779bffda4aac7a28efa68012a6d4b53
tree7a047596226bbe1575817745ac85cef9b6450f21
parent2d5404caa8c7bb5c4e0435f94b28834ae5456623
ubifs: ubifs_jnl_write_inode: Only check once for the limitation of xattr count

No need to check the limitation of xattr count every time in function
ubifs_jnl_write_inode(), because the 'ui->xattr_cnt' won't be modified
by others in the inode evicting process.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/journal.c