fs: Remove the inernal st_count field from struct stat

it's more simple to reuse the resolve argument as the recursive count

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I826b2fef3af8b12aae230e4766ab09f8de988f8a
This commit is contained in:
Xiang Xiao 2021-07-09 02:02:49 +08:00
parent 8692c316ff
commit 49a4cfd8aa
3 changed files with 22 additions and 33 deletions

View file

@ -141,14 +141,6 @@ struct stat
struct timespec st_ctim; /* Time of last status change */
blksize_t st_blksize; /* Block size used for filesystem I/O */
blkcnt_t st_blocks; /* Number of blocks allocated */
/* Internal fields. These are part this specific implementation and
* should not referenced by application code for portability reasons.
*/
#ifdef CONFIG_PSEUDOFS_SOFTLINKS
uint8_t st_count; /* Used internally to limit traversal of links */
#endif
};
/****************************************************************************