diff options
Diffstat (limited to 'fs/logfs/super.c')
-rw-r--r-- | fs/logfs/super.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c index b9b3154b0485..e795c234ea33 100644 --- a/fs/logfs/super.c +++ b/fs/logfs/super.c | |||
@@ -92,28 +92,6 @@ void logfs_crash_dump(struct super_block *sb) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | /* | 94 | /* |
95 | * TODO: move to lib/string.c | ||
96 | */ | ||
97 | /** | ||
98 | * memchr_inv - Find a character in an area of memory. | ||
99 | * @s: The memory area | ||
100 | * @c: The byte to search for | ||
101 | * @n: The size of the area. | ||
102 | * | ||
103 | * returns the address of the first character other than @c, or %NULL | ||
104 | * if the whole buffer contains just @c. | ||
105 | */ | ||
106 | void *memchr_inv(const void *s, int c, size_t n) | ||
107 | { | ||
108 | const unsigned char *p = s; | ||
109 | while (n-- != 0) | ||
110 | if ((unsigned char)c != *p++) | ||
111 | return (void *)(p - 1); | ||
112 | |||
113 | return NULL; | ||
114 | } | ||
115 | |||
116 | /* | ||
117 | * FIXME: There should be a reserve for root, similar to ext2. | 95 | * FIXME: There should be a reserve for root, similar to ext2. |
118 | */ | 96 | */ |
119 | int logfs_statfs(struct dentry *dentry, struct kstatfs *stats) | 97 | int logfs_statfs(struct dentry *dentry, struct kstatfs *stats) |