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