mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ceph: ENOMEM pr_err in __get_or_create_frag() is redundant
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> Reviewed-by: Yan, Zheng <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
This commit is contained in:
parent
397f238994
commit
51308806ff
1 changed files with 2 additions and 5 deletions
|
|
@ -133,12 +133,9 @@ static struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci,
|
|||
}
|
||||
|
||||
frag = kmalloc(sizeof(*frag), GFP_NOFS);
|
||||
if (!frag) {
|
||||
pr_err("__get_or_create_frag ENOMEM on %p %llx.%llx "
|
||||
"frag %x\n", &ci->vfs_inode,
|
||||
ceph_vinop(&ci->vfs_inode), f);
|
||||
if (!frag)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
}
|
||||
|
||||
frag->frag = f;
|
||||
frag->split_by = 0;
|
||||
frag->mds = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue