mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 06:45:38 +00:00
A small optimization used to calculate the size of the pathname
This commit is contained in:
@@ -803,7 +803,7 @@ retry:
|
|||||||
const char deleted_str[] = " (deleted)";
|
const char deleted_str[] = " (deleted)";
|
||||||
const size_t deleted_size = sizeof(deleted_str) - 1;
|
const size_t deleted_size = sizeof(deleted_str) - 1;
|
||||||
size_t size;
|
size_t size;
|
||||||
size = strlen(name);
|
size = (PAGE_SIZE - 1) - (name - page);
|
||||||
|
|
||||||
/* check for (deleted) that d_path appends to pathnames if
|
/* check for (deleted) that d_path appends to pathnames if
|
||||||
* the dentry has been removed from the cache.
|
* the dentry has been removed from the cache.
|
||||||
|
Reference in New Issue
Block a user