summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-09-28 15:43:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-08 08:36:58 +0200
commit2789fcd748ea5998c924fca7706113cf74bd7b42 (patch)
tree95505358482f0842ebb8a3836626554cd88635f9 /include
parent3f0e6a07da363d89129bcf483709050f8a202f80 (diff)
downloadbarebox-2789fcd748ea5998c924fca7706113cf74bd7b42.tar.gz
barebox-2789fcd748ea5998c924fca7706113cf74bd7b42.tar.xz
fs: let dir_emit_dots return int
Change to the same prototype as the kernel to make code porting easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4550e8feeb..0c91434039 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -426,7 +426,7 @@ static inline bool dir_emit_dotdot(struct file *file, struct dir_context *ctx)
parent_ino(file->f_path.dentry), DT_DIR) == 0;
}
-static inline void dir_emit_dots(struct file *file, struct dir_context *ctx)
+static inline int dir_emit_dots(struct file *file, struct dir_context *ctx)
{
if (ctx->pos == 0) {
dir_emit_dot(file, ctx);
@@ -436,6 +436,7 @@ static inline void dir_emit_dots(struct file *file, struct dir_context *ctx)
dir_emit_dotdot(file, ctx);
ctx->pos = 2;
}
+ return true;
}
struct file_operations {